-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
43 lines (39 loc) · 1.22 KB
/
docker-compose.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
version: '3'
services:
adbc:
image: ghcr.io/ably-labs/adbc:latest
env_file:
- env.local # load config from env file
environment:
- ADBC_POSTGRES_USER=${POSTGRES_USER}
- ADBC_POSTGRES_HOST=postgres # override the host to talk to postgres on ably_models_demo_livecomments_network
- ADBC_POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- ADBC_POSTGRES_DATABASE=${POSTGRES_DATABASE}
- ADBC_ABLY_API_KEY=${NEXT_PUBLIC_ABLY_API_KEY}
- ADBC_OUTBOX_TABLE_AUTO_CREATE=true
- ADBC_NODES_TABLE_AUTO_CREATE=true
depends_on:
postgres:
condition: service_healthy
networks:
ably_models_demo_livecomments_network:
postgres:
image: postgres:11-alpine
ports:
- 5432:5432
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
healthcheck:
test: ["CMD", "pg_isready", "-q", "-d", "postgres", "-U", "postgres"]
interval: 2s
retries: 30
networks:
ably_models_demo_livecomments_network:
volumes:
- ably_models_demo_livecomments_postgres_data:/var/lib/postgresql/data
volumes:
ably_models_demo_livecomments_postgres_data:
networks:
ably_models_demo_livecomments_network: