-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (52 loc) · 1.25 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
version: "3"
networks:
agrarserver-main:
external: true
agrarserver-intern:
services:
geoserver:
build: ./geoserver
networks:
- agrarserver-intern
web:
build:
context: ./web
args:
- GATEWAY_HOST=gateway.${COMPOSE_PROJECT_NAME}.localhost
labels:
- "traefik.frontend.rule=Host:web.${COMPOSE_PROJECT_NAME}.localhost"
networks:
- agrarserver-main
postgis:
image: mdillon/postgis:11-alpine
networks:
- agrarserver-intern
postgis-seed:
build: ./postgis-seed
networks:
- agrarserver-intern
gateway:
build: ./gateway
labels:
- "traefik.frontend.rule=Host:gateway.${COMPOSE_PROJECT_NAME}.localhost"
- "traefik.port=5000"
environment:
- GEOSERVER_HOST=geoserver
- GEOSERVER_PORT=8080
- STATE_NAME=${COMPOSE_PROJECT_NAME}
networks:
agrarserver-main:
aliases:
- gateway.${COMPOSE_PROJECT_NAME}
agrarserver-intern:
cadvisor:
image: google/cadvisor:latest
labels:
- "traefik.frontend.rule=Host:cadvisor.${COMPOSE_PROJECT_NAME}.localhost"
volumes:
- /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
networks:
- agrarserver-main