mirror of
https://github.com/Lumither/nocturne.git
synced 2026-10-17 10:26:21 +00:00
61 lines
1.1 KiB
YAML
61 lines
1.1 KiB
YAML
services:
|
|
frontend:
|
|
depends_on:
|
|
- backend
|
|
build:
|
|
context: ./frontend
|
|
dockerfile: ../container/release/frontend.containerfile
|
|
restart: always
|
|
ports:
|
|
- "3000:3000"
|
|
env_file:
|
|
- ./.env
|
|
|
|
|
|
backend:
|
|
depends_on:
|
|
- migrate
|
|
build:
|
|
context: ./backend
|
|
dockerfile: ../container/release/backend.containerfile
|
|
args:
|
|
ARCH: ${ARCH}
|
|
restart: always
|
|
ports:
|
|
- "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
|