-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
58 lines (58 loc) · 1.15 KB
/
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
services:
app:
container_name: slow-tunes-bot
hostname: slowtunesbot
build: .
init: true
volumes:
- bot-data:/app/data
environment:
# DEBUG: 0
PYTHONUNBUFFERED: 1
PYTHONDONTWRITEBYTECODE: 1
REDIS_HOST: cache
REDIS_PORT: 6379
env_file:
- ./.env
restart: on-failure
depends_on:
- cache
networks:
- internal
- external
cache:
container_name: slow-tunes-bot-cache
hostname: slowtunesbot-cache
image: redis:7.0.9-alpine
restart: always
ports:
- 6379:6379
command: redis-server --save 300 1 --loglevel warning
volumes:
- bot-cache:/data
networks:
- internal
webhook:
container_name: slow-tunes-bot-webhook
hostname: slowtunesbot-webhook
image: nginx:stable-alpine
restart: always
depends_on:
- app
ports:
- 8080:8080
networks:
- external
- internal
volumes:
- ./webhook:/etc/nginx/templates
volumes:
bot-data:
bot-cache:
networks:
external:
name: slow-tunes-bot-network
internal: false
internal:
name: slow-tunes-bot-internal
internal: true