-
Notifications
You must be signed in to change notification settings - Fork 55
/
docker-compose.yml
86 lines (76 loc) · 1.5 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
version: "3"
services:
redis:
image: redis:alpine3.9
container_name: "demo_redis"
volumes:
- redis_data:/data
mysql:
image: mysql
container_name: "demo_mysql"
command: --max_allowed_packet=32505856
ports:
- "3306:3306"
env_file:
- ./docker/mysql/.env
volumes:
- db_data:/var/lib/mysql
front:
image: abiosoft/caddy
container_name: "demo_front"
environment:
- CADDYPATH=/etc/caddycerts
ports:
- 80:80
- 443:443
volumes:
- ./docker/caddy/Caddyfile:/etc/Caddyfile
- ./docker/caddy/caddyssl:/etc/caddycerts
- .:/app
depends_on:
- app
node:
build: ./docker/node
container_name: "demo_node"
tty: true
ports:
- 8080:8080
volumes:
- .:/app
depends_on:
- app
websocket:
build: ./docker/centrifugo/
container_name: "demo_websocket"
ports:
- '8000:8000'
volumes:
- ./docker/centrifugo/config.json:/centrifugo/config.json
depends_on:
- app
ulimits:
nofile:
soft: 65536
hard: 65536
app:
image: flameplace_app:alpine
build: ./docker/
container_name: "demo_app"
volumes:
- .:/app
depends_on:
- mysql
- redis
cron:
image: flameplace_app:alpine
container_name: "demo_cron"
volumes:
- .:/app
depends_on:
- mysql
- redis
- app
command: /usr/local/bin/start
volumes:
db_data:
redis_data: