-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (44 loc) · 882 Bytes
/
docker-compose.yml
File metadata and controls
48 lines (44 loc) · 882 Bytes
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
services:
web:
build: .
container_name: fastapi_app
command: uvicorn main:app --host 0.0.0.0 --port 8000 --reload
ports:
- "8000:8000"
volumes:
- .:/app
env_file:
- .env
depends_on:
- db
- redis
db:
image: postgres:15
container_name: postgres_db
restart: always
environment:
POSTGRES_DB: online_shop
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
volumes:
- pg_data:/var/lib/postgresql/data
redis:
image: redis:7
container_name: redis
ports:
- "6379:6379"
celery_worker:
build: .
container_name: celery_worker
command: celery -A ecommerce.orders.worker.celery_app worker --loglevel=info
volumes:
- .:/app
env_file:
- .env
depends_on:
- redis
- db
volumes:
pg_data: