Files
nocturne/prod.compose.yaml
T
lumither 3f5f23a4e8
build canary nocturne image / build (push) Has been cancelled
feat(action) canary container build
2025-11-03 01:15:46 -05:00

61 lines
1.1 KiB
YAML

services:
frontend:
depends_on:
- backend
build:
context: ./frontend
dockerfile: ../container/release/frontend.containerfile
restart: always
ports:
- "0.0.0.0:3000:3000"
env_file:
- ./.env
backend:
depends_on:
- migrate
build:
context: ./backend
dockerfile: ../container/release/backend.containerfile
args:
ARCH: ${ARCH}
restart: always
ports:
- "0.0.0.0:3001:3001"
env_file:
- ./.env
- ./.env.local
dns:
- 1.1.1.1
migrate:
image: postgres:17
depends_on:
postgres:
condition: service_healthy
env_file:
- ./.env
- ./.env.local
volumes:
- ./migration/ddl:/migrations:ro
- ./migration/migration.sh:/migration.sh:ro
entrypoint: [ "/bin/sh", "/migration.sh" ]
postgres:
image: postgres:17
ports:
- "5432:5432"
env_file:
- ./.env
- ./.env.local
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB" ]
interval: 5s
timeout: 3s
retries: 10
start_period: 5s
restart: always