-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
75 lines (69 loc) · 1.67 KB
/
docker-compose.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
version: "2.3"
services:
nginx:
image: plevenlab.org/wt03-dashboard-nginx:latest
container_name: wt03-nginx
build:
context: containers/nginx
ports:
- '${NGINX_WEB_PORT}:80'
- '${NGINX_WEB_PORT_SSL}:443'
restart: unless-stopped
volumes:
- type: bind
source: ./data/nginx/etc/nginx/conf.d
target: /etc/nginx/conf.d
read_only: true
- type: bind
source: ${PHP_SOURCE_SOURCE_PATH}
target: ${PHP_TARGET_SOURCE_PATH}
read_only: true
- type: bind
source: ./data/nginx/logs
target: /var/log/nginx
links:
- php
- db
networks:
- frontend
- backend
php:
image: plevenlab.org/wt03-dashboard-php-fpm:latest
user: ${PHP_UID}:${PHP_GID}
build:
context: containers/php
container_name: wt03-php
volumes:
- type: bind
source: ${PHP_SOURCE_SOURCE_PATH}
target: ${PHP_TARGET_SOURCE_PATH}
networks:
- backend
setup-env:
image: plevenlab.org/wt03-dashboard-setup-env:latest
user: ${PHP_UID}:${PHP_GID}
build:
context: containers/setup-env
container_name: wt03-setup-env
volumes:
- type: bind
source: ${PHP_SOURCE_SOURCE_PATH}
target: ${PHP_TARGET_SOURCE_PATH}
networks:
- backend
db:
container_name: wt03-db
restart: always
image: mysql:5.7
volumes:
- ./data/db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
networks:
- backend
networks:
frontend:
backend: