diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..a5ab608 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,51 @@ +services: + postgres: + image: postgres:16-alpine + container_name: schuettgo-postgres + restart: always + environment: + POSTGRES_DB: schuettgo + POSTGRES_USER: schuettgo + POSTGRES_PASSWORD: ${DB_PASSWORD:-SchuettGo2026!SecureDB} + volumes: + - postgres_data:/var/lib/postgresql/data + ports: + - "127.0.0.1:5433:5432" + networks: + - schuettgo-network + + backend: + build: ../schuettgo-backend + container_name: schuettgo-backend + restart: always + environment: + DATABASE_URL: postgres://schuettgo:${DB_PASSWORD:-SchuettGo2026!SecureDB}@postgres:5432/schuettgo + JWT_SECRET: ${JWT_SECRET:-schuettgo-jwt-secret-2026-change-me} + PORT: 8000 + ports: + - "127.0.0.1:8003:8000" + depends_on: + - postgres + networks: + - schuettgo-network + + frontend: + build: + context: ../schuettgo-frontend + args: + VITE_API_URL: https://api.schuettgo.kronos-soulution.de + container_name: schuettgo-frontend + restart: always + ports: + - "127.0.0.1:3005:80" + depends_on: + - backend + networks: + - schuettgo-network + +networks: + schuettgo-network: + driver: bridge + +volumes: + postgres_data: