-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (40 loc) · 993 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (40 loc) · 993 Bytes
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
version: '3.9'
services:
wordpress:
build:
context: ./wordpress/docker/
environment:
WORDPRESS_DB_NAME: ${MYSQL_DATABASE}
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_USER: ${MYSQL_USER}
WORDPRESS_DB_PASSWORD: ${MYSQL_PASSWORD}
volumes:
- ./wordpress/html:/var/www/html
depends_on:
- db
restart: always
db:
platform: linux/x86_64
build:
context: ./db/docker/
restart: always
environment:
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
volumes:
- ./db/mysql:/var/lib/mysql
proxy:
build:
context: ./proxy/docker/
ports:
- '8000:80'
volumes:
- ./proxy/nginx.conf:/etc/nginx/nginx.conf
- ./proxy/conf.d:/etc/nginx/conf.d
- ./proxy/log:/var/log/nginx
- ./wordpress/html:/var/www/html
depends_on:
- wordpress
restart: always