Last change
on this file since 972 was
968,
checked in by djay, 4 years ago
|
Add websocketd container to docker-compose and make the OGC API - Processes and it basic UI available.
|
File size:
1.6 KB
|
Line | |
---|
1 | version: '3' |
---|
2 | services: |
---|
3 | zookernel: |
---|
4 | build: . |
---|
5 | ports: |
---|
6 | - "80:80" |
---|
7 | volumes: |
---|
8 | - ./docker/main.cfg:/usr/lib/cgi-bin/main.cfg |
---|
9 | - ./docker/oas.cfg:/usr/lib/cgi-bin/oas.cfg |
---|
10 | - ./docker/default.conf:/etc/apache2/sites-available/000-default.conf |
---|
11 | - ./zoo-project/zoo-services/utils/open-api/server/publish.py:/usr/lib/cgi-bin/publish.py |
---|
12 | - ./zoo-project/zoo-services/utils/open-api/server/subscriber.py:/usr/lib/cgi-bin/subscriber.py |
---|
13 | - ./docker/.htaccess:/var/www/html/.htaccess |
---|
14 | - ./zoo-project/zoo-services/utils/open-api/templates/index.html:/var/www/index.html |
---|
15 | - ./zoo-project/zoo-services/utils/open-api/static:/var/www/html/static |
---|
16 | depends_on: |
---|
17 | - pgbouncer |
---|
18 | environment: |
---|
19 | - ZOO_REDIS_HOST=redis |
---|
20 | websocketd: |
---|
21 | build: ./docker/websocketd |
---|
22 | ports: |
---|
23 | - 8888:8888 |
---|
24 | environment: |
---|
25 | - ZOO_REDIS_HOST=redis |
---|
26 | volumes: |
---|
27 | - ./zoo-project/zoo-services/utils/open-api/server/subscriber.py:/shell.py |
---|
28 | command: ["--port=8888", "/shell.py"] |
---|
29 | pg: |
---|
30 | image: postgres:9.6.18-alpine |
---|
31 | restart: always |
---|
32 | environment: |
---|
33 | POSTGRES_USER: zoo |
---|
34 | POSTGRES_PASSWORD: zoo |
---|
35 | POSTGRES_DB: zoo |
---|
36 | volumes: |
---|
37 | # Load the zoo kernel schema |
---|
38 | - ./zoo-project/zoo-kernel/sql/schema.sql:/docker-entrypoint-initdb.d/1-schema.sql |
---|
39 | pgbouncer: |
---|
40 | image: edoburu/pgbouncer:1.8.1 |
---|
41 | environment: |
---|
42 | DATABASE_URL: "postgres://zoo:zoo@pg/zoo" |
---|
43 | MAX_CLIENT_CONN: 1000 |
---|
44 | MAX_DB_CONNECTIONS: 100 |
---|
45 | DEFAULT_POOL_SIZE: 100 |
---|
46 | POOL_MODE: transaction |
---|
47 | ports: |
---|
48 | - "5432:5432" |
---|
49 | depends_on: |
---|
50 | - pg |
---|
51 | redis: |
---|
52 | image: redis:6.0.9 |
---|
Note: See
TracBrowser
for help on using the repository browser.