-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
76 lines (70 loc) · 1.52 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
version: "3.7"
services:
nginx:
build:
context: provision/nginx
args:
- NGINX_VERSION=${NGINX_VERSION}
shm_size: '4gb'
restart: unless-stopped
volumes:
- ../:/app:rw
- ./logs/nginx:/var/log/nginx
- ./etc/nginx/conf.d:/etc/nginx/conf.d
environment:
TZ: 'Europe/Moscow'
ports:
- '80:80'
expose:
- '80'
depends_on:
- 'php'
extra_hosts:
- "docker.loc:host-gateway"
php:
build: provision/php/${PHP_VER}
shm_size: '4gb'
restart: unless-stopped
expose:
- '9000'
- '9001'
depends_on:
- 'mysql'
environment:
TZ: 'Europe/Moscow'
PHP_IDE_CONFIG: 'serverName=${LOCAL_HOST}'
volumes:
- ../:/app:rw
- ./logs/php:/var/log/php7
sysctls:
net.core.somaxconn: '1024'
extra_hosts:
- "my.tassfx.loc:host-gateway"
mysql:
build: provision/mariadb
command: --default-authentication-plugin=mysql_native_password --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
restart: unless-stopped
environment:
TZ: 'Europe/Moscow'
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: db
MYSQL_USER: user
MYSQL_PASSWORD: password
ports:
- '3309:3306'
volumes:
- './bin:/app'
volumes:
mysql:
driver: "local"
networks:
internal:
driver: bridge
ipam:
driver: default
delelop_net:
name: ${NETWORK_NAME}
ipam:
driver: default
config:
- subnet: ${NET_CONFIG_SUBNET}