forked from stellar/go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
38 lines (36 loc) · 979 Bytes
/
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
version: '3'
services:
horizon-postgres:
platform: linux/amd64
image: postgres:12-bullseye
restart: on-failure
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
- POSTGRES_DB=horizon
ports:
- "5432:5432"
volumes:
- "horizon-db-data:/var/lib/postgresql/data"
horizon:
platform: linux/amd64
depends_on:
- horizon-postgres
build:
# set build context to the root directory of the go monorepo
context: ../../../
args:
STELLAR_CORE_VERSION: ${STELLAR_CORE_VERSION:-}
dockerfile: services/horizon/docker/Dockerfile.dev
restart: on-failure
ports:
- "8000:8000"
- "11725:11725"
environment:
- DATABASE_URL=postgres://[email protected]:5432/horizon?sslmode=disable
- NETWORK=testnet
- PER_HOUR_RATE_LIMIT=0
command: ["--apply-migrations"]
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
horizon-db-data: