-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (46 loc) · 871 Bytes
/
docker-compose.yml
File metadata and controls
49 lines (46 loc) · 871 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
49
version: "3.9"
services:
fastapi-data-app:
build:
context: .
dockerfile: Dockerfile
container_name: fastapi-data-app
ports:
- "8000:8000"
volumes:
- .:/app-docker
command: "uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload"
environment:
- PYTHONPATH=.
env_file:
- .env
networks:
- fastapi-network
redis:
image: "redis:alpine"
ports:
- "6379:6379"
volumes:
- redis-data:/data
networks:
- fastapi-network
celery-worker:
build:
context: .
dockerfile: Dockerfile.celery
volumes:
- .:/app-docker
depends_on:
- redis
environment:
- PYTHONPATH=.
env_file:
- .env
networks:
- fastapi-network
networks:
fastapi-network:
driver: bridge
volumes:
redis-data:
driver: local