-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
102 lines (95 loc) · 2.12 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
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
version: '3'
networks:
frontend:
driver: bridge
backend:
driver: bridge
volumes:
node_modules: ~
vendor: ~
services:
### Server #########################################
website:
container_name: ${APP_NAME}-website
build:
context: ./docker
dockerfile: Dockerfile
environment:
- TZ=${TZ}
volumes:
- ./website:/var/www/html
- vendor:/var/www/html/vendor
- node_modules:/var/www/html/node_modules
- './logs/supervisor:/var/www/log/supervisor'
ports:
- 8765:80
- 8766:8766
depends_on:
- mysql
links:
- mysql
networks:
- frontend
- backend
restart: always
cap_add:
- ALL
privileged: true
### MySQL ################################################
mysql:
container_name: ${APP_NAME}-mysql
image: mysql:5.7
environment:
- MYSQL_DATABASE=${DB_DATABASE}
- MYSQL_USER=${DB_USERNAME}
- MYSQL_PASSWORD=${DB_PASSWORD}
- MYSQL_ROOT_PASSWORD=${DB_ROOT_PASSWORD}
- TZ=${TZ}
ports:
- 3306:3306
# volumes:
# - ./mysql:/var/lib/mysql
networks:
- backend
restart: always
cap_add:
- ALL
privileged: true
# ### PHPMyAdmin #############################################
phpmyadmin:
container_name: ${APP_NAME}-phpmyadmin
image: phpmyadmin/phpmyadmin
depends_on:
- mysql
links:
- mysql:db
ports:
- 9191:80
networks:
- backend
- frontend
environment:
- MYSQL_USERNAME=${DB_USERNAME}
- MYSQL_ROOT_PASSWORD=${DB_PASSWORD}
- PMA_HOST=mysql
restart: unless-stopped
cap_add:
- ALL
privileged: true
# proxy:
# image: nginx
# container_name: "${APP_NAME}-proxy"
# hostname: proxy
# restart: always
# depends_on:
# - website
# volumes:
# - "/etc/timezone:/etc/timezone:ro"
# - "/etc/localtime:/etc/localtime:ro"
# - ./proxy/certificates:/etc/letsencrypt/
# ports:
# - 80:80
# - 443:443
# networks:
# - frontend
# - backend