|
Last change
on this file since 963 was
959,
checked in by djay, 6 years ago
|
|
Add Dockerfile created on #177 providing docker-compose environmeent solving issue reported on #175.
|
|
File size:
880 bytes
|
| Rev | Line | |
|---|
| [959] | 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 | depends_on: |
|---|
| 12 | - pgbouncer |
|---|
| 13 | pg: |
|---|
| 14 | image: postgres:9.6.18-alpine |
|---|
| 15 | restart: always |
|---|
| 16 | environment: |
|---|
| 17 | POSTGRES_USER: zoo |
|---|
| 18 | POSTGRES_PASSWORD: zoo |
|---|
| 19 | POSTGRES_DB: zoo |
|---|
| 20 | volumes: |
|---|
| 21 | # Load the zoo kernel schema |
|---|
| 22 | - ./zoo-project/zoo-kernel/sql/schema.sql:/docker-entrypoint-initdb.d/1-schema.sql |
|---|
| 23 | pgbouncer: |
|---|
| 24 | image: edoburu/pgbouncer:1.8.1 |
|---|
| 25 | environment: |
|---|
| 26 | DATABASE_URL: "postgres://zoo:zoo@pg/zoo" |
|---|
| 27 | MAX_CLIENT_CONN: 1000 |
|---|
| 28 | MAX_DB_CONNECTIONS: 100 |
|---|
| 29 | DEFAULT_POOL_SIZE: 100 |
|---|
| 30 | POOL_MODE: transaction |
|---|
| 31 | ports: |
|---|
| 32 | - "5432:5432" |
|---|
| 33 | depends_on: |
|---|
| 34 | - pg |
|---|
| 35 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.