-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
49 lines (42 loc) · 972 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
48
49
version: '3.11'
services:
bot:
build: .
container_name: ${SERVICE_NAME}
volumes:
- .:/app
env_file:
- .env
depends_on:
- db
- redis
command: ["/bin/sh", "-c", "./script/run.sh"]
ports:
- "${SERVICE_PORT}:${SERVICE_PORT}"
redis:
image: redis:latest
container_name: redis
ports:
- 6379:6379
volumes:
- redis_data:/data
db:
image: postgres:14
container_name: postgres_db
ports:
- 5432:5432
environment:
POSTGRES_DB: ${DB_NAME}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_PASSWORD: ${DB_PASSWORD}
volumes:
- db_data:/var/lib/postgresql/data
celery_worker:
build: .
command: celery -A app.bot.services.external.celery.tasks worker --loglevel=info --concurrency=1 --queues=example_queue
celery_beat:
build: .
command: celery -A app.bot.services.external.celery.tasks beat -l INFO
volumes:
db_data:
redis_data: