-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
71 lines (66 loc) · 1.89 KB
/
Copy pathdocker-compose.yml
File metadata and controls
71 lines (66 loc) · 1.89 KB
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
version: '3.8'
x-common-variables: &common-variables
DB_NAME: ${DB_NAME}
DB_USER: ${DB_USER_KEY}
DB_KEY: ${DB_USER_SECRET}
DB_PORT: ${DB_PORT}
services:
api:
container_name: ${PROJECT_NAME}_api
build:
dockerfile: Dockerfile
context: "./src"
restart: always
ports:
- ${API_PORT}:${API_PORT}
environment:
<<: *common-variables
COINKEY: ${COINKEY}
stellarpostgres:
build: ./postgres-docker
container_name: stellar-postgres
restart: unless-stopped
volumes:
- ~/stellar/node/postgresql:/var/lib/postgresql/data
environment:
POSTGRES_USER: stellar
POSTGRES_DB: coredb
POSTGRES_PASSWORD: password
networks:
- default
stellarcore:
build: ./core-docker
container_name: stellar-core
volumes:
- ~/stellar/node/core:/opt/stellar
restart: unless-stopped
depends_on:
- stellarpostgres
environment:
POSTGRES_USER: stellar
POSTGRES_PASSWORD: password
TESTNET: 1
CORE_DB_DSN: "postgresql://dbname=coredb host=stellarpostgres user=stellar password=password sslmode=disable"
ports:
- "11625:11625"
networks:
- default
stellarhorizon:
build: ./horizon-docker
container_name: stellar-horizon
volumes:
- ~/stellar/node/horizon:/opt/stellar
restart: unless-stopped
depends_on:
- stellarpostgres
- stellarcore
environment:
POSTGRES_USER: stellar
POSTGRES_PASSWORD: password
TESTNET: 1
CORE_DB_DSN: "postgres://stellar:password@stellarpostgres/coredb?sslmode=disable"
HORIZON_DB_DSN: "postgres://stellar:password@stellarpostgres/horizondb?sslmode=disable"
ports:
- "8000:8000"
networks:
- default