forked from ilyarolf/AiogramShopBot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
73 lines (67 loc) · 1.31 KB
/
docker-compose.yml
File metadata and controls
73 lines (67 loc) · 1.31 KB
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
services:
caddy:
image: caddy
ports:
- "80:80"
- "443:443"
networks:
- caddy
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- ./caddy_data:/data
- ./caddy_config:/config
restart: always
bot:
build:
context: .
container_name: 'AiogramShopBot'
env_file:
- .env
labels:
caddy: YOUR-DOMAIN-GOES-HERE
caddy.reverse_proxy: "bot:5000"
depends_on:
- caddy
networks:
- caddy
ports:
- "127.0.0.1:5000:5000" # ${WEBAPP_PORT}:${WEBAPP_PORT}
volumes:
- ./i18n:/bot/i18n
command: [ "python", "-u", "run.py" ]
restart: always
redis:
image: redis:latest
container_name: redis
command:
- /bin/sh
- -c
- redis-server --requirepass "$${REDIS_PASSWORD:?REDIS_PASSWORD variable is not set}"
ports:
- "127.0.0.1:6379:6379"
env_file:
- .env
volumes:
- redis_data:/data
restart: always
networks:
- caddy
postgres:
container_name: "postgres"
image: "postgres:18"
env_file:
- .env
ports:
- "127.0.0.1:5432:5432"
volumes:
- ./postgres_data:/var/lib/postgresql
networks:
- caddy
restart: always
volumes:
AiogramShopBot:
caddy_data:
redis_data:
postgres_data:
networks:
caddy: