-
Notifications
You must be signed in to change notification settings - Fork 74
/
docker-compose.yaml
51 lines (46 loc) · 1.46 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
version: '3'
# Dockerfile for development purposes
# Includes dashboard for RabbitMq and Postgres, which may not be
# wanted in a production environment
services:
substrate-archive-mq:
image: 'rabbitmq:3-management' # RabbitMQ with included management dashboard
networks:
default:
ipv4_address: 172.10.10.2 # 0 and 1 are reserved for docker
ports:
- 5672:5672 # localhost:container_port ; don't change container port
- 15672:15672
substrate-archive-pg:
image: 'postgres:latest'
ports:
- 6432:5432 # localhost_port:container_port ; don't change container_port
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: 123 # change me
POSTGRES_DB: polkadot # default db name
networks:
default:
ipv4_address: 172.10.10.3
volumes:
# this volume executes a script that creates databases 'kusama' and 'test' in addition to 'polkadot'
- ./scripts/docker_postgres_init.sql:/docker-entrypoint-initdb.d/docker_postgres_init.sql
- ./scripts/postgresql.conf:/etc/postgresql.conf
pgadmin:
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: "[email protected]"
PGADMIN_DEFAULT_PASSWORD: "admin"
networks:
default:
ipv4_address: 172.10.10.4
ports:
- 16543:80
restart: unless-stopped
depends_on:
- substrate-archive-pg
networks:
default:
ipam:
config:
- subnet: 172.10.10.0/24