53 lines
1.3 KiB
YAML
53 lines
1.3 KiB
YAML
services:
|
|
api:
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
environment:
|
|
KMTN_ADMIN_PASSWORD: 123
|
|
KMTN_ADMIN_USERNAME: admin
|
|
KMTN_CORS_ORIGINS: '["http://truenas.local:4200", "http://truenas.local"]'
|
|
KMTN_DATABASE_URL: >-
|
|
postgresql+asyncpg://postgres:postgres@/kmountain?host=/var/run/postgresql
|
|
image: truenas.local:35000/kmtnflower-api:latest
|
|
pull_policy: always
|
|
ports:
|
|
- '8000:8000'
|
|
restart: unless-stopped
|
|
volumes:
|
|
- pgsocket:/var/run/postgresql
|
|
- logs:/logs
|
|
db:
|
|
environment:
|
|
POSTGRES_DB: kmountain
|
|
POSTGRES_PASSWORD: postgres
|
|
POSTGRES_USER: postgres
|
|
healthcheck:
|
|
interval: 5s
|
|
retries: 5
|
|
test:
|
|
- CMD-SHELL
|
|
- pg_isready -U postgres
|
|
timeout: 5s
|
|
image: docker.io/library/postgres:16-alpine
|
|
restart: unless-stopped
|
|
volumes:
|
|
- /mnt/WestTek_Mainframe/vm_data/kmtndata:/var/lib/postgresql/data
|
|
- pgsocket:/var/run/postgresql
|
|
frontend:
|
|
depends_on:
|
|
- api
|
|
environment:
|
|
API_PUBLIC_URL: http://truenas.local:8000
|
|
API_UPSTREAM: http://api:8000
|
|
image: truenas.local:35000/kmtnflower:latest
|
|
pull_policy: always
|
|
ports:
|
|
- '4200:80'
|
|
restart: unless-stopped
|
|
volumes:
|
|
- logs:/logs
|
|
volumes:
|
|
pgsocket:
|
|
logs:
|