-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathdocker-compose.testing.yml
More file actions
66 lines (61 loc) · 1.83 KB
/
docker-compose.testing.yml
File metadata and controls
66 lines (61 loc) · 1.83 KB
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
version: "3.9"
services:
wachterbot-testing:
container_name: wachterbot-testing
image: ghcr.io/wachter-org/wachter-bot/wachterbot:testing
environment:
- TELEGRAM_TOKEN=${TELEGRAM_TOKEN}
- TELEGRAM_ERROR_CHAT_ID=${TELEGRAM_ERROR_CHAT_ID}
- DATABASE_URL=${DATABASE_URL}
- UPTRACE_DSN=${UPTRACE_DSN}
- PERSISTENCE_DATABASE_URL=${PERSISTENCE_DATABASE_URL}
- DEBUG=${DEBUG}
- DEPLOYMENT_ENVIRONMENT=testing
- TEAM_TELEGRAM_IDS=${TEAM_TELEGRAM_IDS}
restart: unless-stopped
postgres-testing:
image: postgres:17-alpine
restart: always
ports:
- 5433:5432
environment:
POSTGRES_DB: db
POSTGRES_HOST: postgres-testing
POSTGRES_USER: ${DATABASE_USER}
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
volumes:
- volume-db:/data/db
- postgres-data:/var/lib/postgresql/data
- ./backup/db.sql:/docker-entrypoint-initdb.d/backupfile.sql
healthcheck:
test: pg_isready -U ${DATABASE_USER} -d db
interval: 5s
timeout: 2s
retries: 3
postgres-persistence-testing:
image: postgres:17-alpine
restart: always
ports:
- 5434:5432
environment:
POSTGRES_DB: persistence-db
POSTGRES_HOST: postgres-persistence-testing
POSTGRES_USER: ${PERSISTENCE_DATABASE_USER}
POSTGRES_PASSWORD: ${PERSISTENCE_DATABASE_PASSWORD}
volumes:
- volume-persistence-db:/data/db
- postgres-persistence-data:/var/lib/postgresql/data
- ./backup/db-persistence.sql:/docker-entrypoint-initdb.d/backupfile.sql
healthcheck:
test: pg_isready -U ${PERSISTENCE_DATABASE_USER} -d persistence-db
interval: 5s
timeout: 2s
retries: 3
volumes:
volume-db:
postgres-data:
volume-persistence-db:
postgres-persistence-data:
networks:
default:
name: network-wachterbot-testing