-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
76 lines (74 loc) · 1.82 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
version: '3.7'
services:
postgres:
container_name: postgres
image: postgres:16-alpine
environment:
- POSTGRES_USER=${POSTGRES_USER:-datamine}
- POSTGRES_DB=${POSTGRES_DB:-datamine}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
restart: always
ports:
- 54320:5432
networks:
- datamine
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
interval: 5s
timeout: 5s
retries: 60
ingest:
container_name: ingest
build:
context: .
dockerfile: ./apps/ingest/Dockerfile
restart: always
ports:
- 5000:5000
environment:
- GITHUB_WEBHOOK_SECRET=${GITHUB_WEBHOOK_SECRET}
- GITHUB_REPOSITORY_NAME=${GITHUB_REPOSITORY_NAME}
- DISPATCH_URL=${DISPATCH_URL:-http://dispatch:5001/}
networks:
- datamine
depends_on:
- dispatch
dispatch:
container_name: dispatch
build:
context: .
dockerfile: ./apps/dispatch/Dockerfile
restart: always
environment:
- DB_HOST=postgres
- DB_PORT=5432
- DB_NAME=${POSTGRES_DB:-datamine}
- DB_USER=${POSTGRES_USER:-datamine}
- DB_PASSWORD=${POSTGRES_PASSWORD}
- DISCORD_BOT_TOKEN=${DISCORD_BOT_TOKEN}
depends_on:
postgres:
condition: service_healthy
networks:
- datamine
bot:
container_name: bot
build:
context: .
dockerfile: ./apps/bot/Dockerfile
restart: always
environment:
- DB_HOST=postgres
- DB_PORT=5432
- DB_NAME=${POSTGRES_DB:-datamine}
- DB_USER=${POSTGRES_USER:-datamine}
- DB_PASSWORD=${POSTGRES_PASSWORD}
- DISCORD_BOT_TOKEN=${DISCORD_BOT_TOKEN}
depends_on:
postgres:
condition: service_healthy
networks:
- datamine
networks:
datamine:
name: datamine