b2ce2172a2
(cherry picked from commit 1a92c63ef6d60e9dcba513ebf60cbd9f18a142e8)
144 lines
3.0 KiB
YAML
144 lines
3.0 KiB
YAML
|
|
services:
|
|
postgres:
|
|
image: postgres
|
|
restart: unless-stopped
|
|
environment:
|
|
- POSTGRES_DB=kontor
|
|
- POSTGRES_USER=kontor
|
|
#- POSTGRES_PASSWORD_FILE=/run/secrets/db-password
|
|
- POSTGRES_PASSWORD=kontor
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U kontor"]
|
|
interval: 1s
|
|
timeout: 5s
|
|
retries: 10
|
|
ports:
|
|
- 5432:5432
|
|
networks:
|
|
- integration
|
|
- frontend
|
|
volumes:
|
|
- postgres-data:/var/lib/postgresql/data:rw
|
|
secrets:
|
|
- db-password
|
|
adminer:
|
|
image: adminer
|
|
ports:
|
|
- 8090:8080
|
|
networks:
|
|
- database
|
|
- frontend
|
|
kontor:
|
|
image: kontor:0.2.0-SNAPSHOT
|
|
restart: unless-stopped
|
|
networks:
|
|
- database
|
|
- integration
|
|
- frontend
|
|
ports:
|
|
- 8000:8000
|
|
volumes:
|
|
- images-data:/data/images
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
kontor-api:
|
|
image: kontor-api:0.2.0-SNAPSHOT
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://kontor-api:8500/health"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 3
|
|
networks:
|
|
- database
|
|
- integration
|
|
- frontend
|
|
ports:
|
|
- 8500:8500
|
|
volumes:
|
|
- images-data:/data/images
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
kontor-fiber:
|
|
build:
|
|
context: ./kontor-fiber
|
|
dockerfile: Dockerfile
|
|
tags:
|
|
- kontor-fiber:0.2.0-SNAPSHOT
|
|
image: kontor-fiber:0.2.0-SNAPSHOT
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://kontor-fiber:8600/health"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 3
|
|
networks:
|
|
- database
|
|
- integration
|
|
- frontend
|
|
ports:
|
|
- 8600:8600
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
kontor-echo:
|
|
build:
|
|
context: ./kontor-echo
|
|
dockerfile: Dockerfile
|
|
tags:
|
|
- kontor-echo:0.2.0-SNAPSHOT
|
|
image: kontor-echo:0.2.0-SNAPSHOT
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://kontor-echo:8700/health"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 3
|
|
networks:
|
|
- database
|
|
- integration
|
|
- frontend
|
|
ports:
|
|
- 8700:8700
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
kontor-quarkus:
|
|
build:
|
|
context: ./kontor-quarkus
|
|
dockerfile: Dockerfile
|
|
tags:
|
|
- kontor-quarkus:0.2.0-SNAPSHOT
|
|
image: kontor-quarkus:0.2.0-SNAPSHOT
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://kontor-quarkus:8800/q/health"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 3
|
|
networks:
|
|
- database
|
|
- integration
|
|
- frontend
|
|
ports:
|
|
- 8800:8800
|
|
volumes:
|
|
- images-data:/data/images
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
networks:
|
|
integration:
|
|
name: integration
|
|
frontend:
|
|
volumes:
|
|
postgres-data:
|
|
images-data:
|
|
secrets:
|
|
db-password:
|
|
file: db-password.txt
|
|
|