-
Notifications
You must be signed in to change notification settings - Fork 19
/
docker-compose.dev.yml
68 lines (63 loc) · 1.67 KB
/
docker-compose.dev.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
59
60
61
62
63
64
65
66
67
68
version: "3.9"
services:
wachter-db:
container_name: wachter-db-dev
image: postgres:alpine
restart: always
ports:
- 5433:5432
environment:
POSTGRES_DB: db
POSTGRES_HOST: wachter-db
POSTGRES_USER: user
POSTGRES_PASSWORD: password
volumes:
- volume-db:/data/db
- postgres-data:/var/lib/postgresql/data
- ./share/sql:/docker-entrypoint-initdb.d
healthcheck:
test: pg_isready -U user -d db
interval: 5s
timeout: 2s
retries: 3
wachter-persistence-db:
container_name: wachter-persistence-db-dev
image: postgres:alpine
restart: always
ports:
- 5434:5432
environment:
POSTGRES_DB: db
POSTGRES_HOST: wachter-persistence-db
POSTGRES_USER: user
POSTGRES_PASSWORD: password
volumes:
- volume-persistence-db:/data/db
- postgres-persistence-data:/var/lib/postgresql/data
- ./share/sql-persistence:/docker-entrypoint-initdb.d
healthcheck:
test: pg_isready -U user -d db
interval: 5s
timeout: 2s
retries: 3
wachter:
container_name: wachter-dev
build:
context: .
environment:
- TELEGRAM_TOKEN=${TELEGRAM_TOKEN}
- TELEGRAM_ERROR_CHAT_ID=${TELEGRAM_ERROR_CHAT_ID}
- DATABASE_URL=postgresql+asyncpg://user:password@wachter-db/db
- PERSISTENCE_DATABASE_URL=postgresql://user:password@wachter-persistence-db/db
restart: unless-stopped
depends_on:
wachter-db:
condition: service_healthy
volumes:
volume-db:
postgres-data:
volume-persistence-db:
postgres-persistence-data:
networks:
default:
name: network-wachter-dev