-
Notifications
You must be signed in to change notification settings - Fork 33
/
compose.yml
78 lines (59 loc) · 1.2 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
version: "3.0"
services:
web:
build: .
volumes:
- .:/app
environment:
DATABASE_URL: ${DATABASE_URL}
JWT_SECRET: ${JWT_SECRET}
JWT_ALGORITHM: ${JWT_ALGORITHM}
MAIL_USERNAME: ${MAIL_USERNAME}
MAIL_PASSWORD: ${MAIL_PASSWORD}
MAIL_SERVER: ${MAIL_SERVER}
MAIL_PORT: ${MAIL_PORT}
MAIL_FROM: ${MAIL_FROM}
MAIL_FROM_NAME: ${MAIL_FROM_NAME}
DOMAIN: ${DOMAIN}
REDIS_URL: ${REDIS_URL}
ports:
- "8000:8000"
depends_on:
- db
- redis
networks:
- app-network
db:
image: postgres:15
environment:
POSTGRES_USER: postgres
POSTGRES_DB: bookly
POSTGRES_PASSWORD: testpass
ports:
- "5432:5432"
volumes:
- db-data:/var/lib/postgresql/data
networks:
- app-network
redis:
image: redis:6
ports:
- "6379:6379"
networks:
- app-network
celery:
build: .
command: celery -A src.celery_tasks.c_app worker --loglevel=INFO
volumes:
- .:/app
depends_on:
- redis
environment:
REDIS_URL: ${REDIS_URL}
networks:
- app-network
volumes:
db-data:
networks:
app-network:
driver: bridge