Files
place4bees.com/docker-compose.yml
T
2026-07-06 13:37:08 +02:00

56 lines
1.3 KiB
YAML

services:
postgres:
image: postgres:16-alpine
restart: unless-stopped
environment:
POSTGRES_USER: medusa
POSTGRES_PASSWORD: medusa
POSTGRES_DB: medusa
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U medusa"]
interval: 5s
timeout: 5s
retries: 10
redis:
image: redis:7-alpine
restart: unless-stopped
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 10
backend:
build:
context: ./backend
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
environment:
DATABASE_URL: postgres://medusa:medusa@postgres:5432/medusa
REDIS_URL: redis://redis:6379
JWT_SECRET: ${JWT_SECRET:-supersecret}
COOKIE_SECRET: ${COOKIE_SECRET:-supersecret}
STORE_CORS: ${STORE_CORS:-https://hhonig.de,https://place4bees.com,http://localhost:4321}
ADMIN_CORS: ${ADMIN_CORS:-http://localhost:9001}
AUTH_CORS: ${AUTH_CORS:-http://localhost:9001,http://localhost:4321}
PORT: 9001
ports:
- "9001:9001"
volumes:
- ./backend:/app
- /app/node_modules
volumes:
postgres_data: