-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.dev.yaml
More file actions
56 lines (53 loc) · 1.49 KB
/
compose.dev.yaml
File metadata and controls
56 lines (53 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
services:
wp:
image: ghcr.io/lifeisnphard/purplefy-app:latest-wp-dev
env_file:
- .env.dev
environment:
WORDPRESS_DB_HOST: ${DB_HOST}
WORDPRESS_DB_USER: ${DB_USER}
WORDPRESS_DB_PASSWORD: ${DB_PASSWORD}
WORDPRESS_DB_NAME: ${DB_NAME}
WORDPRESS_CONFIG_EXTRA: |
# Disable plugin and theme update and installation
define( 'DISALLOW_FILE_MODS', true );
# Disable automatic updates
define( 'AUTOMATIC_UPDATER_DISABLED', true );
restart: 'no'
volumes:
- 'document-root:/var/www/html'
depends_on:
- mariadb
nginx:
image: cgr.dev/chainguard/nginx:latest-dev@sha256:f7e4ebba5c4eaa31da5cc01d31ef243fdead6055c1f3b8c5e6d0f85e33aa4f42
env_file:
- .env.dev
restart: 'no'
ports:
- '8080:8080'
volumes:
- 'document-root:/var/www/html'
- './docker/nginx/nginx.conf:/etc/nginx/nginx.conf'
depends_on:
- wp
mariadb:
image: cgr.dev/chainguard/mariadb:latest-dev@sha256:62523e6bc97843d1e384251644e54247e84c866064e8ac99e4fe1781c8775a38
env_file:
- .env.dev
environment:
MARIADB_USER: ${DB_USER}
MARIADB_PASSWORD: ${DB_PASSWORD}
MARIADB_DATABASE: ${DB_NAME}
MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: 'yes'
restart: 'no'
ports:
- '3306:3306'
volumes:
- 'db-data:/var/lib/mysql'
volumes:
document-root:
name: purplefy-app-dev-document-root
driver: local
db-data:
name: purplefy-app-dev-db-data
driver: local