-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yaml
112 lines (107 loc) · 4.05 KB
/
docker-compose.yaml
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
version: '3'
services:
zookernel:
# platform: linux/amd64
image: eoepca/proc-ades:dev3.0.2
build: .
ports:
- "80:80"
volumes:
- ./assets/main.cfg:/usr/lib/cgi-bin/main.cfg
- ./assets/oas.cfg:/usr/lib/cgi-bin/oas.cfg
- ./assets/.htaccess:/var/www/html/.htaccess
- ./assets/cwlwrapper-assets:/assets
# EOEPCA Specific
- ./src/zoo-services/assets/cookiecutter_config.yaml:/tmp/cookiecutter_config.yaml
- ./src/zoo-services/services/DeployProcess.py:/usr/lib/cgi-bin/DeployProcess.py
- ./src/zoo-services/services/DeployProcess.zcfg:/usr/lib/cgi-bin/DeployProcess.zcfg
- ./src/zoo-services/services/UndeployProcess.py:/usr/lib/cgi-bin/UndeployProcess.py
- ./src/zoo-services/services/UndeployProcess.zcfg:/usr/lib/cgi-bin/UndeployProcess.zcfg
- ./src/zoo-services/services/deploy_util.py:/usr/lib/cgi-bin/deploy_util.py
- ./src/zoo-services/assets/HelloPy.zcfg:/usr/lib/cgi-bin/HelloPy.zcfg
- ./src/zoo-services/assets/test_service.py:/usr/lib/cgi-bin/test_service.py
depends_on:
- pgbouncer
- redis
- rabbitmq
environment:
- ZOO_REDIS_HOST=redis
zoofpm:
# platform: linux/amd64
image: eoepca/proc-ades:dev3.0.2
volumes:
- ./assets/main.cfg:/usr/lib/cgi-bin/main.cfg
- ./assets/oas.cfg:/usr/lib/cgi-bin/oas.cfg
- ./assets/default.conf:/etc/apache2/sites-available/000-default.conf
- ./assets/open-api/server/publish.py:/usr/lib/cgi-bin/publish.py
- ./assets/open-api/server/subscriber.py:/usr/lib/cgi-bin/subscriber.py
- ./assets/open-api/server/startUp.sh:/startUp.sh
# EOEPCA Specific
- ./src/zoo-services/assets/cookiecutter_config.yaml:/tmp/cookiecutter_config.yaml
- ./src/zoo-services/services/DeployProcess.py:/usr/lib/cgi-bin/DeployProcess.py
- ./src/zoo-services/services/DeployProcess.zcfg:/usr/lib/cgi-bin/DeployProcess.zcfg
- ./src/zoo-services/services/UndeployProcess.py:/usr/lib/cgi-bin/UndeployProcess.py
- ./src/zoo-services/services/UndeployProcess.zcfg:/usr/lib/cgi-bin/UndeployProcess.zcfg
- ./src/zoo-services/services/deploy_util.py:/usr/lib/cgi-bin/deploy_util.py
- ./src/zoo-services/assets/HelloPy.zcfg:/usr/lib/cgi-bin/HelloPy.zcfg
- ./src/zoo-services/assets/test_service.py:/usr/lib/cgi-bin/test_service.py
# set the kubeconfig path here
# - /home/user/.kube/config:/root/.kube/config
depends_on:
- rabbitmq
- pgbouncer
environment:
- ZOO_RABBITMQ_HOST=rabbitmq
# Sample setup
# - STORAGE_CLASS=managed-nfs-storage
# - ADES_STAGEOUT_AWS_SERVICEURL=cf2.cloudferro.com:8080
# - ADES_STAGEOUT_AWS_ACCESS_KEY_ID=demo-user-eric+username
# - ADES_STAGEOUT_AWS_SECRET_ACCESS_KEY=demo-user-eric+password
command: [ "/startUp.sh" ]
websocketd:
# platform: linux/amd64
build: ./docker/websocketd
depends_on:
- redis
ports:
- 8888:8888
environment:
- ZOO_REDIS_HOST=redis
volumes:
- ./assets/open-api/server/subscriber.py:/shell.py
command: ["--port=8888", "/shell.py"]
pg:
# platform: linux/amd64
image: postgres:12.10-alpine
restart: always
environment:
POSTGRES_USER: zoo
POSTGRES_PASSWORD: zoo
POSTGRES_DB: zoo
volumes:
# Load the zoo kernel schema
- ./assets/sql/schema.sql:/docker-entrypoint-initdb.d/1-schema.sql
- ./assets/sql/async_amqp.sql:/docker-entrypoint-initdb.d/2-schema.sql
- ./assets/sql/zoo_collectiondb.sql:/docker-entrypoint-initdb.d/3-schema.sql
pgbouncer:
# platform: linux/amd64
image: edoburu/pgbouncer:1.8.1
environment:
DATABASE_URL: "postgres://zoo:zoo@pg/zoo"
MAX_CLIENT_CONN: 1000
MAX_DB_CONNECTIONS: 100
DEFAULT_POOL_SIZE: 100
POOL_MODE: transaction
ports:
- "5432:5432"
depends_on:
- pg
redis:
image: redis:6.0.9
rabbitmq:
image: rabbitmq:3.8.9-management-alpine
volumes:
- ./docker/definitions.json:/etc/rabbitmq/definitions.json
ports:
- "15672:15672"
- "5672:5672"