generated from devgateway/wp-react-lib
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-beta.yml
144 lines (135 loc) · 3.53 KB
/
docker-compose-beta.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
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.Beta
volumes:
- ui:/var/www/ui
restart: "no"
wordpress:
image: library/wordpress:5.7-fpm-alpine
depends_on:
- plugins
- mysql
environment:
WORDPRESS_DB_HOST: mysql
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
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
# mongo:
# image: mongo:4.2.2-bionic
# container_name: mongo
# restart: unless-stopped
# hostname: mongo
# environment:
# - MONGO_DATA=/data/db
# - MONGO_INITDB_ROOT_USERNAME=root
# - MONGO_INITDB_ROOT_PASSWORD=admin123
# volumes:
# - ./data/mongo:/data/db
# - ./mongo/init:/docker-entrypoint-initdb.d
# - ./log/mongo:/srv/logs
# stop_grace_period: 5m
# networks:
# - frontend
# - backend
# ports:
# - 27018:27017
# postgres:
# build:
# context: ./postgres
# volumes:
# - ./data/postgresql:/var/lib/postgresql/data
# networks:
# - frontend
# - backend
# ports:
# - 5433:5432
# env_file:
# - env
# restart: unless-stopped
# logging:
# driver: journald
# tasai:
# build:
# context: ./api
# dockerfile: Dockerfile
# networks:
# - backend
# depends_on:
# - postgres
# - mongo
# logging:
# driver: journald
metabase:
image: metabase/metabase:v0.40.2
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
MB_DB_TYPE: postgres
MB_DB_DBNAME: metabase
MB_DB_PORT: 5432
MB_DB_USER: metabase
MB_DB_PASS: 12345678
MB_DB_HOST: host.docker.internal
networks:
- backend
nginx:
image: nginx:alpine
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/wordpress_beta.conf:/etc/nginx/conf.d/wordpress.conf:ro
- /var/log/tasai:/usr/share/nginx/tasai:ro
- ./nginx/logs.conf:/etc/nginx/conf.d/logs.conf:ro
- ./nginx/metabase_beta.conf:/etc/nginx/conf.d/metabase_beta.conf:ro
- ./nginx/ui_beta.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
- metabase
networks:
- frontend
- backend
ports:
- 8060:80
mysql:
image: mariadb
volumes:
- ./data/mysql:/var/lib/mysql
restart: always
ports:
- 3308: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: