This repository was archived by the owner on Aug 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose-local.yml
More file actions
71 lines (64 loc) · 1.48 KB
/
Copy pathdocker-compose-local.yml
File metadata and controls
71 lines (64 loc) · 1.48 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
version: '3'
services:
nginx:
container_name: forwarder_bot_nginx
image: awnulled/forwarder-bot/nginx
restart: always
depends_on:
- app
ports:
- "80:80"
app:
container_name: forwarder_bot_app
image: awnulled/forwarder-bot/app
restart: always
command: bash -c "cd src/ &&
./prestart.sh &&
gunicorn main:create_bot_app
-k aiohttp.GunicornWebWorker
-b 0.0.0.0:80
--keep-alive 200
--timeout 200
--graceful-timeout 200"
depends_on:
- db
volumes:
- ./src:/app/src
- app_logs:/app/src/logs
env_file:
- .env.dev
db:
container_name: forwarder_bot_db
image: awnulled/forwarder-bot/postgres
volumes:
- pgdata:/var/lib/postgresql/data
restart: on-failure
ports:
- "0.0.0.0:5432:5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
pgbouncer:
container_name: forwarder_bot_pgbouncer
image: awnulled/forwarder-bot/pgbouncer
restart: always
ports:
- "0.0.0.0:6432:6432"
depends_on:
- db
redis:
container_name: forwarder_bot_redis
image: redis:6-buster
restart: always
command: --appendonly yes
volumes:
- redisdata:/data
ports:
- "0.0.0.0:6379:6379"
volumes:
pgdata:
redisdata:
app_logs:
networks:
default: