-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yaml
98 lines (98 loc) · 3.21 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
version: '3.6'
services:
postgres:
image: postgres:13
restart: always
environment:
- DATABASE_HOST=${DATABASE_HOST}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./scripts/docker_postgres_init.sql:/docker-entrypoint-initdb.d/docker_postgres_init.sql
keycloak:
image: 'quay.io/keycloak/keycloak:21.0.1'
ports:
- "8081:8080"
restart: always
healthcheck:
test: ["CMD", "curl", "--fail", "http://localhost:8080/health"]
command: ["start-dev", "--import-realm"]
volumes:
- ./keycloak/sugarfunge-realm.json:/opt/keycloak/data/import/sugarfunge-realm.json
environment:
KC_DB: "postgres"
KC_METRICS_ENABLED: "true"
KC_HEALTH_ENABLED: "true"
KC_DB_URL_HOST: ${KC_DB_URL_HOST}
KC_DB_URL_DATABASE: ${KC_DB_URL_DATABASE}
KC_DB_SCHEMA: ${KC_DB_SCHEMA}
KC_DB_USERNAME: ${KC_DB_USERNAME}
KC_DB_PASSWORD: ${KC_DB_PASSWORD}
KEYCLOAK_ADMIN: ${KEYCLOAK_ADMIN}
KEYCLOAK_ADMIN_PASSWORD: ${KEYCLOAK_ADMIN_PASSWORD}
sf-node-alice:
image: 'sugarfunge.azurecr.io/node:latest'
restart: always
network_mode: "host"
command: ["--alice", "--port=30334", "--ws-port=9944", "--prometheus-port=9091", "--ws-external", "--rpc-external", "--prometheus-external", "--rpc-cors", "all"]
volumes:
- ./rocksdb/alice:/root/.local/share/sugarfunge-node/chains/local_testnet/db/full
sf-node-bob:
image: 'sugarfunge.azurecr.io/node:latest'
restart: always
network_mode: "host"
command: ["--bob", "--port=30335", "--ws-port=9945", "--ws-external", "--rpc-external", "--rpc-cors", "all", "--bootnodes", "/ip4/127.0.0.1/tcp/30334/p2p/12D3KooWGzN9EZLNkxEVeApishpq8d3pzChPmw9jQ9kra3csTAhk"]
volumes:
- ./rocksdb/bob:/root/.local/share/sugarfunge-node/chains/local_testnet/db/full
sf-api:
image: 'sugarfunge.azurecr.io/api:latest'
restart: always
network_mode: 'host'
command: ["-l", "http://0.0.0.0:4000", "-s", "ws://127.0.0.1:9944"]
sf-status:
image: 'sugarfunge.azurecr.io/status:latest'
restart: always
network_mode: 'host'
environment:
PORT: ${PORT}
REACT_APP_PROVIDER_SOCKET: ${REACT_APP_PROVIDER_SOCKET}
sf-explorer:
image: 'sugarfunge.azurecr.io/explorer:latest'
restart: always
network_mode: 'host'
environment:
WS_URL: ${WS_URL}
ipfs:
image: 'ipfs/kubo:v0.18.1'
restart: always
ports:
- "4001:4001"
- "8001:8080"
- "5001:5001"
volumes:
- ./ipfs:/data/ipfs
prometheus:
image: 'prom/prometheus:v2.42.0'
extra_hosts:
- "host.docker.internal:host-gateway"
restart: always
ports:
- "9090:9090"
volumes:
- ./metrics/prometheus.yml:/etc/prometheus/prometheus.yml
grafana:
image: 'grafana/grafana-oss:9.4.3'
restart: always
ports:
- "3000:3000"
volumes:
- grafana_data:/var/lib/grafana
- ./metrics/grafana/provisioning:/etc/grafana/provisioning
- ./metrics/grafana/dashboards:/var/lib/grafana/dashboards
volumes:
postgres_data:
grafana_data: