-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
45 lines (44 loc) · 1.45 KB
/
compose.yaml
File metadata and controls
45 lines (44 loc) · 1.45 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
secrets:
database_password:
file: ./build/secrets/DATABASE_PASSWORD_FILE
services:
web:
build:
context: .
args:
- WORDPRESS_DOWNLOAD_URL=${WORDPRESS_DOWNLOAD_URL}
dockerfile: ./build/Dockerfile
volumes:
- ./code/config/wp-config.php:/var/www/html/wp-config.php:ro
- ./code/themes/project-uno:/var/www/html/wp-content/themes/project-uno:ro
- ./code/uploads:/var/www/html/wp-content/uploads:rw
environment:
DB_HOST: db
DB_NAME: wordpress_project_name
DB_USER: db_user_name
DB_PASSWORD_FILE: /run/secrets/DATABASE_PASSWORD_FILE
WP_DEBUG: true
WP_DEBUG_LOG: true
secrets:
- source: database_password
target: DATABASE_PASSWORD_FILE
ports:
- "8178:8080"
db:
image: docker.io/library/mysql:8-oracle
volumes:
- ./build/fixtures:/docker-entrypoint-initdb.d
environment:
MYSQL_DATABASE: wordpress_project_name
MYSQL_USER: db_user_name
MYSQL_PASSWORD_FILE: /run/secrets/DATABASE_PASSWORD_FILE
MYSQL_RANDOM_ROOT_PASSWORD: yes
secrets:
- source: database_password
target: DATABASE_PASSWORD_FILE
phpmyadmin:
image: phpmyadmin:latest
depends_on:
- db
ports:
- 1000:80