forked from snapshot-labs/snapshot-hub
-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
51 lines (47 loc) · 1.35 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
version: "3.7"
services:
# Snapshot hub
snapshot-hub:
build: .
container_name: snapshot-hub
env_file:
- .env.local
environment:
PORT: 8080
DEV: "true"
ALLOWED_DOMAINS: "http://localhost"
JAWSDB_URL: postgres://admin:admin@snapshot-postgres:5432/snapshot-db
TARGET_SNAPSHOT_HUB_API: https://hub.snapshot.page # https://testnet.snapshot.page
ALCHEMY_API_URL: https://eth-goerli.alchemyapi.io/v2/cdrXBHcsaHGES6pIAEvZiQEhOesgNgEg
depends_on:
- snapshot-postgres
ports:
- 8080:8080
# Snapshot Postgres instance
snapshot-postgres:
image: bitnami/postgresql:13
container_name: snapshot-postgres
environment:
POSTGRESQL_USERNAME: admin
POSTGRESQL_PASSWORD: "admin"
POSTGRESQL_DATABASE: snapshot-db
ports:
- 5432:5432
snapshot-pgadmin:
image: dpage/pgadmin4
container_name: snapshot-pgadmin
environment:
PGADMIN_CONFIG_SERVER_MODE: "False"
PGADMIN_CONFIG_UPGRADE_CHECK_ENABLED: "False"
PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED: "False"
PGADMIN_CONFIG_CONSOLE_LOG_LEVEL: "40"
PGADMIN_CONFIG_FILE_LOG_LEVEL: "40"
PGADMIN_DEFAULT_EMAIL: "admin@admin.com"
PGADMIN_DEFAULT_PASSWORD: "admin"
ports:
- 5050:80
depends_on:
- snapshot-postgres
networks:
default:
name: snapshot-network