-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
47 lines (43 loc) · 923 Bytes
/
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
version: "2.1"
volumes:
db:
driver: local
redis-data:
driver: local
services:
bot:
image: optimum/smarty
container_name: smarty
env_file: .env
restart: always
links:
- redis
- db
entrypoint: /usr/bin/supervisord -c /etc/supervisord.conf -n
ports:
- 80:80
- 8000:8000
volumes:
- .:/app
- ./supervisord.conf:/etc/supervisord.conf
db:
image: mysql:5.7
env_file: .env
redis:
container_name: smarty_redis
image: redis
restart: always
ports:
- 6379
sysctls:
net.core.somaxconn: 1024
logging:
driver: "json-file"
options:
max-size: "10m"
tag: "container_{{.Name}}"
env_file: .env
volumes:
- redis-data:/data
- ./redis/rc.local:/etc/rc.local
- ./redis/redis.conf:/usr/local/etc/redis/redis.conf