-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
58 lines (52 loc) · 1.05 KB
/
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
50
51
52
53
54
55
56
57
58
version: "3.8"
services:
db:
container_name: PostgreSQL
image: postgres
restart: on-failure
ports:
- "5432:5432"
env_file:
- ./.env
pgadmin:
container_name: pgAdmin
image: dpage/pgadmin4
environment:
- PGADMIN_DEFAULT_EMAIL=admin@admin.com
- PGADMIN_DEFAULT_PASSWORD=admin
ports:
- "5050:80"
depends_on:
- db
redis:
container_name: redis
image: redis
ports:
- "6379:6379"
rabbitmq:
container_name: rabbitmq
image: rabbitmq
ports:
- "5672:5672"
- "15672:15672"
fastapi:
container_name: fastapi
build: .
command: bash -c "alembic upgrade head && uvicorn main:app --host 0.0.0.0 --port 8000"
restart: on-failure
ports:
- "8000:8000"
env_file:
- ./.env
depends_on:
- db
celery:
container_name: celery
build: .
command: celery -A utils.celery_worker.app worker --loglevel=info
env_file:
- ./.env
depends_on:
- fastapi
- rabbitmq
- redis