-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-dev.yaml
63 lines (57 loc) · 1.06 KB
/
docker-compose-dev.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
services:
banner_api:
build: .
ports:
- "8000:8000"
env_file:
- .env
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_started
volumes:
- ./banner_api:/opt/app
networks:
- local
dramatiq:
build: .
entrypoint: ./dramatiq-entrypoint.sh
env_file:
- .env
depends_on:
postgres:
condition: service_healthy
volumes:
- ./banner_api:/opt/app
networks:
- local
postgres:
image: postgres:13-alpine
ports:
- "5432:5432"
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_DATABASE}
volumes:
- db:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready", "-d", "postgres" ]
interval: 10s
timeout: 60s
retries: 5
start_period: 5s
networks:
- local
redis:
image: redis:latest
restart: always
expose:
- 6379
networks:
- local
volumes:
db:
networks:
local: