-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yaml
66 lines (65 loc) · 1.35 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
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.7'
networks:
ink-explorer-network:
name: ink-explorer-network
default:
driver: ink-explorer-network
services:
frontend:
build:
context: .
dockerfile: dev.Dockerfile
expose:
- "3000"
ports:
- 3000:3000
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules
- /usr/src/app/dist
environment:
SCHEMA_URL: "http://localhost:8080/graphql"
WS_PROVIDER: "wss://rococo-contracts-rpc.polkadot.io"
networks:
ink-explorer-network:
aliases:
- "frontend"
backend:
image: blockcoders/ink-substrate-explorer-api:latest
restart: on-failure
depends_on:
- postgres
ports:
- 8080:8080
env_file:
- .env
networks:
ink-explorer-network:
aliases:
- "backend"
postgres:
image: postgres:14.4
restart: always
ports:
- 5432:5432
environment:
- POSTGRES_USER=root
- POSTGRES_PASSWORD=password
- POSTGRES_DB=ink
networks:
ink-explorer-network:
aliases:
- "postgres"
pgadmin:
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: "[email protected]"
PGADMIN_DEFAULT_PASSWORD: "admin"
ports:
- 80:80
depends_on:
- postgres
networks:
ink-explorer-network:
aliases:
- "pgadmin"