-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
80 lines (74 loc) · 2.08 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
68
69
70
71
72
73
74
75
76
77
78
79
80
---
version: "2"
services:
rsync:
image: instrumentisto/rsync-ssh:latest
working_dir: /data
volumes:
- ./data/geoserver/:/data/geoserver/
- ./data/raw/:/data/data/raw/
- ./data/sql/:/data/sql/
db:
image: postgis/postgis:12-3.0-alpine
volumes:
- ./data/sql/:/docker-entrypoint-initdb.d/
environment:
POSTGRES_USER: siis
POSTGRES_PASSWORD: siis
ports:
- "5432:5432"
geoserver:
image: docker-registry.data.bas.ac.uk/magic/siis/geoserver:latest
build: ./geoserver
volumes:
- "./data/geoserver/:/var/local/geoserver/"
- "./data/raw/:/data/siis/data/raw/"
- "./runtime/gwc/blobstore/:/data/siis/gwc/blobstore/"
environment:
JAVA_OPTS: -Dservice_pg_user=siis -Dservice_pg_pass=siis -Dservice_pg_host=db -Dservice_pg_port=5432 -Dservice_pg_db=siis
ports:
- "8080:8080"
depends_on:
- db
api:
image: docker-registry.data.bas.ac.uk/magic/siis/api:latest
build: ./api
command: python api/api.py
volumes:
- ./api/api:/usr/src/app/api/
environment:
SERVICE_PG_CONN: "postgresql://siis:siis@db:5432/siis"
ports:
- "9001:5000"
api-kv:
image: docker-registry.data.bas.ac.uk/magic/siis/api-kv:latest
build: ./api-kv
command: flask run --host 0.0.0.0 --port 9002
ports:
- "9002:9002"
depends_on:
- db
app:
image: docker-registry.data.bas.ac.uk/magic/siis/app:latest
build: ./app
command: "yarn dev"
volumes:
- ./app/assets/:/usr/src/app/assets/
- ./app/components/:/usr/src/app/components/
- ./app/dist/:/usr/src/app/dist/
- ./app/mixins.js:/usr/src/app/mixins.js
- ./app/index.js:/usr/src/app/index.js
- ./app/index.html:/usr/src/app/index.html
environment:
HOST: 0.0.0.0
PORT: 9000
VUELAYERS_DEBUG: 1
SERVICE_API_ENDPOINT: http://localhost:9001
SERVICE_API_KV_ENDPOINT: http://localhost:9002/kv
SERVICE_API_OGC_ENDPOINT: http://localhost:8080
ports:
- "9000:9000"
depends_on:
- api
- api-kv
- geoserver