-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
84 lines (77 loc) · 1.4 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
84 lines (77 loc) · 1.4 KB
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
version: '3'
services:
nginx:
build:
context: './nginx'
volumes:
- ${WEB_ROOT}:/var/www/html
ports:
- "${NGINX_HTTP_PORT}:80"
- "${NGINX_HTTPS_PORT}:443"
depends_on:
- php-fpm
tty: true
restart: always
php-cli:
build:
context: './php-cli'
volumes:
- ${WEB_ROOT}:/var/www/html
expose:
- "12360"
ports:
- "23461:23460"
depends_on:
- mysql
tty: true
restart: always
php-fpm:
build:
context: './php-fpm'
volumes:
- ${WEB_ROOT}:/var/www/html
expose:
- "9000"
depends_on:
- mysql
restart: always
stdin_open: true
tty: true
cap_add:
- ALL
mysql:
image: mysql:8.0
volumes:
- ../data/mysql:/var/lib/mysql
expose:
- 3306
ports:
- "${MYSQL_PORT}:3306"
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASES}
restart: always
cap_add: [ SYS_NICE ]
command: --disable-log-bin
redis:
image: redis:5
expose:
- 6379
ports:
- "${REDIS_PORT}:3306"
volumes:
- ../data/redis:/data
restart: always
phpmyadmin:
image: phpmyadmin/phpmyadmin
ports:
- "${PHPMYADMIN_PORT}:80"
depends_on:
- mysql
environment:
- PMA_HOST=mysql
restart: always
networks:
default:
external:
name: ${USER_NETWORK}