From 2b652af323922000d5458cceb82367a3494d017a Mon Sep 17 00:00:00 2001 From: toir-bot Date: Wed, 22 Apr 2026 06:30:22 +0000 Subject: [PATCH] chore: initial project scaffold: docker-compose.yml --- docker-compose.yml | 58 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..1079e7a --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,58 @@ +services: + postgres: + image: postgres:16-alpine + container_name: toir-light-v4-postgres + restart: unless-stopped + environment: + POSTGRES_DB: toir-light-v4 + POSTGRES_USER: ${DB_USER} + POSTGRES_PASSWORD: ${DB_PASSWORD} + volumes: + - postgres_data:/var/lib/postgresql/data + networks: + - internal + + backend: + build: + context: ./backend + dockerfile: Dockerfile + container_name: toir-light-v4-backend + restart: unless-stopped + depends_on: + - postgres + environment: + DATABASE_URL: postgresql://${DB_USER}:${DB_PASSWORD}@postgres:5432/toir-light-v4 + KEYCLOAK_URL: ${KEYCLOAK_URL} + NODE_ENV: production + networks: + - internal + + frontend: + build: + context: ./frontend + dockerfile: Dockerfile + container_name: toir-light-v4-frontend + restart: unless-stopped + networks: + - internal + + nginx: + build: + context: ./nginx + dockerfile: Dockerfile + container_name: toir-light-v4-nginx + restart: unless-stopped + depends_on: + - backend + - frontend + networks: + - internal + - proxy + +volumes: + postgres_data: + +networks: + internal: + proxy: + external: true