forked from PecanProject/BETYdb-YABA
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
58 lines (51 loc) · 1.03 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
version: '3'
services:
# postgresql with postgis docker image to hold the data
postgres:
image: mdillon/postgis:9.5
volumes:
- postgres:/var/lib/postgresql/data
networks:
- bety
ports:
- 9000:5432
restart: unless-stopped
# BETY docker image
bety:
image: pecan/bety:${BRANCH:-latest}
ports:
- 8000:8000
networks:
- bety
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
depends_on:
- postgres
restart: unless-stopped
yaba_api:
build: ./app
networks:
- bety
volumes:
- ./app:/code
ports:
- 5001:5000
depends_on:
- postgres
yaba_client:
build: ./client
networks:
- bety
volumes:
- ./client:/code
ports:
- 6001:6000
depends_on:
- yaba_api
volumes:
postgres:
networks:
bety: