forked from cabloy/cabloy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
65 lines (61 loc) · 1.73 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
version: '3.7'
services:
app:
depends_on:
- mysql
- redis
build:
context: .
dockerfile: docker-compose-dockerfile-app
restart: always
ports:
- '7202:7102'
volumes:
- ./docker-compose/output/app/dist:/root/output/app/dist
- ./docker-compose/output/app/cabloy:/root/cabloy
- ./docker-compose/logs/app:/root/logs
command: ['./scripts/wait-for-it.sh', 'mysql:3306', 'redis:6379', '-s', '--', './scripts/app-init.sh']
nginx:
image: nginx:latest
depends_on:
- app
restart: always
ports:
- '80:80'
volumes:
- ./docker-compose/output/app/dist:/usr/share/nginx/app/dist
- ./docker-compose/output/app/cabloy:/usr/share/nginx/app/cabloy
- ./docker-compose/logs/nginx:/var/log/nginx
- ./docker-compose/config/nginx/conf.d:/etc/nginx/conf.d
mysql:
image: mysql:latest
command:
- --default-authentication-plugin=mysql_native_password
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_general_ci
- --character-set-client-handshake=FALSE
- --skip-host-cache
- --skip-name-resolve
- --slow_query_log=1
- --long_query_time=0.5
- --log-queries-not-using-indexes=1
restart: always
ports:
- '33306:3306'
volumes:
- ./docker-compose/data/mysql:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: 'CDf#lV+q5I1RB2KR'
MYSQL_DATABASE: 'cabloy'
MYSQL_USER: 'web_user'
MYSQL_PASSWORD: '!%{9mov.Tw3LmcYP'
security_opt:
- seccomp:unconfined
redis:
image: redis:latest
command: ['redis-server', '--appendonly', 'yes']
restart: always
ports:
- '36379:6379'
volumes:
- ./docker-compose/data/redis:/data