-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
67 lines (60 loc) · 1.48 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
65
66
67
#docker-compose -p bety up -d postgres
#
# initialize BETY database
#docker run -ti --rm --network bety_bety -e BETY_INITIALIZE_URL='-w https://terraref.ncsa.illinois.edu/bety/dump/bety0/bety.tar.gz' pecan/bety:develop initialize
#
# sync BETY database
#docker run -ti --rm --network bety_bety -e REMOTE_SERVERS=6 pecan/bety:terra sync
#
# run brapi:
# docker-compose -p bety up brapi
version: "3"
services:
# postgresql + postgis to hold all the data
postgres:
image: mdillon/postgis:9.5
networks:
- bety
volumes:
- postgres:/var/lib/postgresql/data
ports:
- 5432:5432
restart: unless-stopped
# BETY rails frontend to the database
bety:
image: pecan/bety:${BRANCH:-latest}
networks:
- bety
ports:
- 8000:8000
environment:
- INITIALIZE_URL=-w https://terraref.ncsa.illinois.edu/bety/dump/bety0/bety.tar.gz
- REMOTE_SERVERS=6
- UNICORN_WORKER_PROCESSES=1
- SECRET_KEY_BASE=thisissomereallllllylongsecretkeyandshouldbelongerthanthis
- DUMPURL=https://terraref.ncsa.illinois.edu/bety/dump/bety6/bety.tar.gz
depends_on:
- postgres
restart: unless-stopped
# BRAPI
brapi:
image: terraref/brapi:openapi
ports:
- 5000:5000
environment:
- DBHOST=postgres
networks:
- bety
depends_on:
- postgres
# BRAVA
brava:
image: terraref/brapi-validator
ports:
- 8080:8080
networks:
- bety
networks:
bety:
volumes:
postgres: