-
Notifications
You must be signed in to change notification settings - Fork 39
/
docker-compose.yml
50 lines (46 loc) · 1.31 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
version: '3.8'
services:
axon:
image: ghcr.io/axonweb3/axon:dev
ports:
- 8000:8000
- 127.0.0.1:8100:8100
networks:
- axon-net
restart: unless-stopped
# https://docs.docker.com/compose/compose-file/05-services/#healthcheck
healthcheck:
test: /app/devtools/docker/health_check.sh
start_period: 10s
timeout: 62s
# CMD: see https://github.com/axonweb3/axon/blob/dev/devtools/docker/docker-entrypoint.sh
explorer:
container_name: blockscan
# TODO: update blockscan image
# Dockerfile: https://github.com/Simon-Tl/blockscan/blob/a60dd45ca8577f97683f89c8a372508a84b74e24/docker/Dockerfile#L56
image: ghcr.io/simon-tl/blockscan:latest
depends_on:
- axon
- explorer-db
env_file:
- ./blockscan-explorer.env
ports:
- 4020:4020
networks:
- axon-net
restart: unless-stopped
command: sh -c "bin/blockscout eval \"Elixir.Explorer.ReleaseTasks.create_and_migrate()\" && bin/blockscout start"
explorer-db:
container_name: postgres
image: postgres:15.2
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-b%rnGL8ps}
POSTGRES_USER: ${POSTGRES_USER:-blockscan}
expose:
- 5432
networks:
- axon-net
restart: unless-stopped
command: postgres -c 'max_connections=250'
networks:
axon-net: