-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathdocker-compose.yml
40 lines (40 loc) · 1.16 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
version: "3.7"
services:
postgres:
image: "postgres"
container_name: "postgres"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_MULTIPLE_DATABASES=coda
ports:
- "127.0.0.1:54320:5432"
volumes:
- ./coda-postgres-data:/var/lib/postgresql/data
- ./schema.sql:/docker-entrypoint-initdb.d/init.sql
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U postgres']
interval: 5s
timeout: 5s
retries: 5
coda:
image: codaprotocol/coda-demo:0.0.12-beta-demo-mode-sync-status-a6de071
container_name: "coda"
command: ""
ports:
- "8302:8302"
- "8303:8303"
volumes:
- ./coda-node-data:/root/
frontend:
image: gobitfly/coda-explorer:latest
command: ./frontend -dbHost postgres -dbUser postgres -dbName coda -dbPassword postgres -dbPort 5432
ports:
- "127.0.0.1:3333:3333"
restart: always
labels:
- "traefik.enable=true"
indexer:
image: gobitfly/coda-explorer:latest
command: ./indexer -dbHost postgres -dbUser postgres -dbName coda -dbPassword postgres -dbPort 5432 -coda coda:3085/graphql
restart: always