chore: remove obsolete compose version keys

This commit is contained in:
Marco Allegretti 2026-02-02 11:25:09 +01:00
parent f29543f429
commit 6ac85c3fcb
4 changed files with 61 additions and 69 deletions

View file

@ -1,5 +1,3 @@
version: "3.9"
services: services:
postgres: postgres:
ports: ports:

View file

@ -1,5 +1,3 @@
version: "3.9"
# Demo deployment - includes demo users, seed data, and restricted actions # Demo deployment - includes demo users, seed data, and restricted actions
# Usage: podman-compose --env-file compose/.env.demo -f compose/demo.yml up -d # Usage: podman-compose --env-file compose/.env.demo -f compose/demo.yml up -d
# Reset: podman-compose --env-file compose/.env.demo -f compose/demo.yml down -v; podman-compose --env-file compose/.env.demo -f compose/demo.yml up -d # Reset: podman-compose --env-file compose/.env.demo -f compose/demo.yml down -v; podman-compose --env-file compose/.env.demo -f compose/demo.yml up -d

View file

@ -1,5 +1,3 @@
version: "3.9"
services: services:
postgres: postgres:
image: postgres:16 image: postgres:16

View file

@ -1,63 +1,61 @@
version: "3.9" # Production deployment - clean instance without demo data
# Usage: podman-compose -f compose/production.yml up -d
# Production deployment - clean instance without demo data
# Usage: podman-compose -f compose/production.yml up -d services:
postgres:
services: image: postgres:16
postgres: container_name: likwid-prod-db
image: postgres:16 restart: unless-stopped
container_name: likwid-prod-db ports:
restart: unless-stopped - "${DB_PORT:-5432}:5432"
ports: environment:
- "${DB_PORT:-5432}:5432" POSTGRES_USER: ${POSTGRES_USER:-likwid}
environment: POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_USER: ${POSTGRES_USER:-likwid} POSTGRES_DB: ${POSTGRES_DB:-likwid_prod}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} volumes:
POSTGRES_DB: ${POSTGRES_DB:-likwid_prod} - likwid_prod_data:/var/lib/postgresql/data
volumes: healthcheck:
- likwid_prod_data:/var/lib/postgresql/data test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-likwid}"]
healthcheck: interval: 10s
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-likwid}"] timeout: 5s
interval: 10s retries: 5
timeout: 5s
retries: 5 backend:
build:
backend: context: ../backend
build: dockerfile: Dockerfile
context: ../backend args:
dockerfile: Dockerfile INCLUDE_DEMO_SEED: "false"
args: container_name: likwid-prod-backend
INCLUDE_DEMO_SEED: "false" restart: unless-stopped
container_name: likwid-prod-backend ports:
restart: unless-stopped - "${BACKEND_PORT:-3000}:3000"
ports: environment:
- "${BACKEND_PORT:-3000}:3000" DATABASE_URL: postgres://${POSTGRES_USER:-likwid}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB:-likwid_prod}
environment: JWT_SECRET: ${JWT_SECRET}
DATABASE_URL: postgres://${POSTGRES_USER:-likwid}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB:-likwid_prod} SERVER_HOST: 0.0.0.0
JWT_SECRET: ${JWT_SECRET} SERVER_PORT: 3000
SERVER_HOST: 0.0.0.0 DEMO_MODE: "false"
SERVER_PORT: 3000 RUST_LOG: info
DEMO_MODE: "false" depends_on:
RUST_LOG: info postgres:
depends_on: condition: service_healthy
postgres:
condition: service_healthy frontend:
build:
frontend: context: ../frontend
build: dockerfile: Dockerfile
context: ../frontend args:
dockerfile: Dockerfile API_BASE: ${API_BASE:-http://localhost:3000}
args: container_name: likwid-prod-frontend
API_BASE: ${API_BASE:-http://localhost:3000} restart: unless-stopped
container_name: likwid-prod-frontend ports:
restart: unless-stopped - "${FRONTEND_PORT:-4321}:4321"
ports: environment:
- "${FRONTEND_PORT:-4321}:4321" INTERNAL_API_BASE: http://backend:3000
environment: API_BASE: ${API_BASE:-http://localhost:3000}
INTERNAL_API_BASE: http://backend:3000 depends_on:
API_BASE: ${API_BASE:-http://localhost:3000} - backend
depends_on:
- backend volumes:
likwid_prod_data:
volumes:
likwid_prod_data: