This repository has been archived by the owner on May 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 51
/
docker-compose.yml
64 lines (58 loc) · 1.42 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
52
53
54
55
56
57
58
59
60
61
62
63
64
version: "3.7"
services:
postgres:
container_name: postgres
image: postgres:14.2
ports:
- "127.0.0.1:5432:5432"
env_file:
- .env
environment:
- POSTGRES_USER=${POSTGRES_USER:-bundlr}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-bundlr}
- POSTGRES_DATABASE=${POSTGRES_DATABASE:-bundlr}
volumes:
- postgres:/var/lib/postgresql/data
restart: unless-stopped
validator:
container_name: validator
build: .
ports:
- "0.0.0.0:${PORT:-42069}:42069"
env_file:
- .env
volumes:
- type: bind
source: ${PWD}/wallet.json
target: /wallet.json
read_only: true
- /bundles:/bundles
environment:
- VALIDATOR_KEY=./wallet.json
- DATABASE_URL=${DATABASE_URL:-postgres://bundlr:bundlr@postgres:5432/bundlr}
- CONTRACT_GATEWAY=http://gateway:3000
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-bundlr}
- POSTGRES_USER=${POSTGRES_USER:-bundlr}
depends_on:
- postgres
- gateway
restart: unless-stopped
gateway:
container_name: gateway
build: ./contracts
ports:
- "127.0.0.1:3000:3000"
env_file:
- .env
volumes:
- type: bind
source: ${PWD}/wallet.json
target: /wallet.json
read_only: true
environment:
- GW_WALLET=../wallet.json
depends_on:
- postgres
restart: unless-stopped
volumes:
postgres: