-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yaml
63 lines (59 loc) · 1.74 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
version: "3.3"
services:
spaceship-staking_db:
image: tokend/postgres-ubuntu:9.6
restart: unless-stopped
ports:
- 5432:5432
environment:
- POSTGRES_USER=spaceship
- POSTGRES_PASSWORD=spaceship
- POSTGRES_DB=spaceship
- PGDATA=/pgdata
volumes:
- spaceship-staking-data:/pgdata
spaceship-staking:
build:
context: .
cache_from:
- spaceship-staking:latest
restart: unless-stopped
environment:
- KV_VIPER_FILE=/spaceship-staking.yaml
- CONTRACT_ADDRESS
- FROM_BLOCK_NUM
- RPC_END_POINT
- MISSION_CREATED_HASH
- MISSION_JOINED_HASH
- REWARD_WITHDRAWN_HASH
- DB_URL
- LOG_LEVEL
- LOG_DISABLE_SENTRY
ports:
- 8279:79
volumes:
- ./configs/spaceship-staking.yaml:/spaceship-staking.yaml
depends_on:
- spaceship-staking_db
entrypoint: sh -c "missions-api migrate up && missions-api run service"
spaceship-staking_api:
build:
context: .
cache_from:
- spaceship-staking:latest
restart: unless-stopped
environment:
- KV_VIPER_FILE=/spaceship-staking.yaml
- LISTEN_ADDRESS=:${LISTEN_PORT}
- DB_URL
- LOG_LEVEL
- LOG_DISABLE_SENTRY
ports:
- ${EXPOSED_PORT}:${LISTEN_PORT}
volumes:
- ./configs/spaceship-staking.yaml:/spaceship-staking.yaml
depends_on:
- spaceship-staking_db
entrypoint: sh -c "missions-api run api"
volumes:
spaceship-staking-data: