-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
78 lines (74 loc) · 2.29 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
77
78
services:
tummy:
image: postgres
restart: always
environment:
- POSTGRES_USER=${TUMMY_USERNAME}
- POSTGRES_PASSWORD=${TUMMY_PASSWORD}
- POSTGRES_DB=tummy
- PGPORT=${TUMMY_PORT}
- PGHOST=tummy
volumes:
- ./tummy/init.sql:/docker-entrypoint-initdb.d/init.sql
- food:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
interval: 5s
timeout: 3s
retries: 20
networks:
digestive-tract:
aliases:
- tummy
tummy-dev:
image: postgres
restart: always
environment:
- POSTGRES_USER=${TUMMY_USERNAME}
- POSTGRES_PASSWORD=${TUMMY_PASSWORD}
- POSTGRES_DB=tummy
- PGPORT=${TUMMY_PORT}
- PGHOST=localhost
volumes:
- ./tummy/init.sql:/docker-entrypoint-initdb.d/init.sql
- food:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
interval: 5s
timeout: 3s
retries: 20
ports:
- "${TUMMY_PORT}:${TUMMY_PORT}"
networks:
- digestive-tract
excretor:
build: "./excretor"
restart: always
depends_on:
tummy:
condition: service_healthy
environment:
- EXCRETOR_PORT=${EXCRETOR_PORT}
- TUMMY_USERNAME=${TUMMY_USERNAME}
- TUMMY_PASSWORD=${TUMMY_PASSWORD}
- TUMMY_DB=tummy
- TUMMY_PORT=${TUMMY_PORT}
- TUMMY_HOST=tummy
- STATIC_ASSETS_DIR=${STATIC_ASSETS_DIR}
- SQLX_OFFLINE=true
- SLACK_CLIENT_ID=${SLACK_CLIENT_ID}
- SLACK_CLIENT_SECRET=${SLACK_CLIENT_SECRET}
- SLACK_REDIRECT_URI=${SLACK_REDIRECT_URI}
- SLACK_SIGNING_SECRET=${SLACK_SIGNING_SECRET}
- SLACK_AUTH_ENABLE=${SLACK_AUTH_ENABLE}
ports:
- "${EXCRETOR_PORT}:${EXCRETOR_PORT}"
networks:
digestive-tract:
aliases:
- excretor
networks:
digestive-tract:
name: digestive-tract
volumes:
food: