generated from devgateway/wp-react-lib
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-training.yml
79 lines (75 loc) · 2.02 KB
/
docker-compose-training.yml
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
version: '3'
services:
plugins:
build:
context: ./wp-react-blocks-plugin/
volumes:
- ./wp-react-blocks-plugin/blocks/build:/tmp/plugins
restart: "no"
ui:
build:
context: ./
dockerfile: ./ui/Dockerfile
args:
ENVIRONMENT: training
volumes:
- ui:/var/www/ui
restart: "no"
wordpress:
image: library/wordpress:5.9.3-fpm-alpine
depends_on:
- plugins
- mysql
environment:
WORDPRESS_DB_HOST: mysql
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress-training
WORDPRESS_DB_NAME: wordpress
volumes:
- ./data/wordpress:/var/www/html
- ./wp-theme:/var/www/html/wp-content/themes/wp-react-theme
- ./wp-react-blocks-plugin:/var/www/html/wp-content/plugins/wp-react-blocks-plugin
- ./wp-content:/var/www/html/wp-content
- ./uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
- ./wordpress/php.ini-development:/usr/local/etc/php/php.ini
networks:
- backend #for dev purpose we use a bridged network
logging:
driver: journald
nginx:
image: nginx:alpine
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/wordpress_training.conf:/etc/nginx/conf.d/wordpress.conf:ro
- ./nginx/ui_training.conf:/etc/nginx/conf.d/ui.conf:ro
- ./data/wordpress:/var/www/html:ro
- ./wp-content:/var/www/html/wp-content:ro
- ./wp-react-blocks-plugin:/var/www/html/wp-content/plugins/wp-react-blocks-plugin:ro
- ui:/var/www/ui:rw
depends_on:
- wordpress
networks:
- frontend
- backend
ports:
- 8071:80
mysql:
image: mariadb
volumes:
- ./data/mysql:/var/lib/mysql
restart: always
ports:
- 3309:3306
environment:
MYSQL_ROOT_PASSWORD: somewordpress
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
networks:
- backend #for dev purpose we use a bridged network
networks:
frontend:
driver: bridge
backend:
volumes:
ui: