-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
64 lines (59 loc) · 1.2 KB
/
docker-compose.yaml
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
version: '3.9'
services:
core:
container_name: core
build:
context: .
dockerfile: Dockerfile
ports:
- "80:80"
env_file:
- .env
depends_on:
db:
condition: service_healthy
rabbitmq:
condition: service_healthy
volumes:
- ./app/:/app
environment:
- WATCHFILES_FORCE_POLLING=true
command: uvicorn app:app --host 0.0.0.0 --port 80 --reload
db:
container_name: db
image: postgres:15-alpine
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: postgres
ports:
- '5432:5432'
volumes:
- dbdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
adminer:
container_name: adminer
image: adminer
restart: always
ports:
- 8080:8080
rabbitmq:
container_name: rabbitmq
hostname: rabbitmq
image: rabbitmq:3-management
env_file:
- .env
ports:
- 5672:5672
- 15672:15672
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 30s
timeout: 30s
retries: 3
volumes:
dbdata: