forked from ZOO-Project/ZOO-Project
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
134 lines (133 loc) · 4.72 KB
/
docker-compose.yml
File metadata and controls
134 lines (133 loc) · 4.72 KB
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
version: '3'
services:
zookernel:
platform: linux/amd64
image: zooproject/zoo-project:latest
#build: .
networks:
front-tier:
ipv4_address: 172.16.238.10
ports:
- "80:80"
volumes:
# Uncomment below to allow changes to the main.cfg and oas.cfg files to be reflected in the container
- ./docker/main.cfg:/usr/lib/cgi-bin/main.cfg
- ./docker/oas.cfg:/usr/lib/cgi-bin/oas.cfg
# - ./docker/default.conf:/etc/apache2/sites-available/000-default.conf # TODO: remove (cesarbenjamindotnet)
# Uncomment below to expose a process named org.n52.javaps.test.EchoProcess
- ./zoo-project/zoo-services/echo-py/cgi-env:/usr/lib/cgi-bin/org/n52/javaps/test
- ./zoo-project/zoo-services/echo-py/cgi-env/echo_service.py:/usr/lib/cgi-bin/echo_service.py
- ./zoo-project/zoo-services/echo-py/cgi-env/echo.zcfg:/usr/lib/cgi-bin/echo.zcfg
- ./zoo-project/zoo-services/utils/open-api/server/publish.py:/usr/lib/cgi-bin/publish.py
- ./zoo-project/zoo-services/utils/open-api/server/subscriber.py:/usr/lib/cgi-bin/subscriber.py
- ./docker/mapserver.conf:/mapserver/etc/mapserver.conf
# - ./docker/.htaccess:/var/www/html/.htaccess # TODO: remove (cesarbenjamindotnet)
# Uncomment below to allow changes to the nginx-default.conf file to be reflected in the container
# - ./docker/nginx-default.conf:/etc/nginx/sites-available/default
# the next line mounts a modified version of TrainRegression.zcfg because the generated one on build is not working
- ./docker/TrainRegression.zcfg:/usr/lib/cgi-bin/OTB/TrainRegression.zcfg
- ./zoo-project/zoo-services/utils/open-api/templates/index.html:/var/www/index.html
- ./zoo-project/zoo-services/utils/open-api/static:/var/www/html/static
- ./docker/com:/usr/com/zoo-project
- ./docker/tmp:/tmp/zTmp
depends_on:
- pgbouncer
- redis
- rabbitmq
environment:
- ZOO_REDIS_HOST=redis
- MAPSERVER_CONFIG_FILE=/mapserver/etc/mapserver.conf
zoofpm:
platform: linux/amd64
image: zooproject/zoo-project:latest
networks:
front-tier:
ipv4_address: 172.16.238.11
volumes:
- ./docker/main.cfg:/usr/lib/cgi-bin/main.cfg
- ./docker/oas.cfg:/usr/lib/cgi-bin/oas.cfg
- ./docker/tmp:/tmp/zTmp
- ./docker/mapserver.conf:/mapserver/etc/mapserver.conf
- ./docker/com:/usr/com/zoo-project
# Uncomment below to expose a process named org.n52.javaps.test.EchoProcess
- ./zoo-project/zoo-services/echo-py/cgi-env:/usr/lib/cgi-bin/org/n52/javaps/test
- ./zoo-project/zoo-services/echo-py/cgi-env/echo_service.py:/usr/lib/cgi-bin/echo_service.py
- ./zoo-project/zoo-services/echo-py/cgi-env/echo.zcfg:/usr/lib/cgi-bin/echo.zcfg
depends_on:
- rabbitmq
- pgbouncer
- zookernel
environment:
- ZOO_RABBITMQ_HOST=rabbitmq
- MAPSERVER_CONFIG_FILE=/mapserver/etc/mapserver.conf
command: [ "/startUp.sh" ]
extra_hosts:
#- "localhost:zookernel"
- "localhost:172.16.238.10"
websocketd:
#platform: linux/amd64
build:
context: .
dockerfile: docker/websocketd/Dockerfile
networks:
front-tier:
ipv4_address: 172.16.238.12
depends_on:
- redis
ports:
- 8888:8888
environment:
- ZOO_REDIS_HOST=redis
volumes:
- ./zoo-project/zoo-services/utils/open-api/server/subscriber.py:/shell.py
command: ["--port=8888", "/shell.py"]
pg:
#platform: linux/amd64
image: postgres:12.10-alpine
restart: always
networks:
front-tier:
ipv4_address: 172.16.238.13
environment:
POSTGRES_USER: zoo
POSTGRES_PASSWORD: zoo
POSTGRES_DB: zoo
volumes:
# Load the zoo kernel schema
- ./zoo-project/zoo-kernel/sql/schema.sql:/docker-entrypoint-initdb.d/1-schema.sql
# Load the async AMQP schema
- ./zoo-project/zoo-kernel/sql/async_amqp.sql:/docker-entrypoint-initdb.d/2-schema.sql
depends_on:
- rabbitmq
pgbouncer:
#platform: linux/amd64
image: edoburu/pgbouncer:1.12.0
networks:
front-tier:
ipv4_address: 172.16.238.14
environment:
DATABASE_URL: "postgres://zoo:zoo@pg/zoo"
MAX_CLIENT_CONN: 1000
MAX_DB_CONNECTIONS: 100
DEFAULT_POOL_SIZE: 100
POOL_MODE: transaction
depends_on:
- pg
redis:
image: redis:6.0.9
networks:
front-tier:
ipv4_address: 172.16.238.15
rabbitmq:
image: rabbitmq:3.8.9-management-alpine
networks:
front-tier:
ipv4_address: 172.16.238.16
volumes:
- ./docker/definitions.json:/etc/rabbitmq/definitions.json
networks:
front-tier:
ipam:
driver: default
config:
- subnet: "172.16.238.0/24"