86 lines
2.0 KiB
YAML
Executable File
86 lines
2.0 KiB
YAML
Executable File
services:
|
|
postgres:
|
|
image: postgres:15-alpine
|
|
container_name: dutchie-postgres
|
|
environment:
|
|
POSTGRES_DB: dutchie_menus
|
|
POSTGRES_USER: dutchie
|
|
POSTGRES_PASSWORD: dutchie_local_pass
|
|
ports:
|
|
- "54320:5432"
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U dutchie"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
minio:
|
|
image: minio/minio:latest
|
|
container_name: dutchie-minio
|
|
command: server /data --console-address ":9001"
|
|
environment:
|
|
MINIO_ROOT_USER: minioadmin
|
|
MINIO_ROOT_PASSWORD: minioadmin
|
|
ports:
|
|
- "9020:9000"
|
|
- "9021:9001"
|
|
volumes:
|
|
- minio_data:/data
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
backend:
|
|
build:
|
|
context: ./backend
|
|
dockerfile: Dockerfile.dev
|
|
container_name: dutchie-backend
|
|
environment:
|
|
NODE_ENV: development
|
|
PORT: 3000
|
|
DATABASE_URL: "postgresql://dutchie:dutchie_local_pass@postgres:5432/dutchie_menus"
|
|
MINIO_ENDPOINT: minio
|
|
MINIO_PORT: 9000
|
|
MINIO_ACCESS_KEY: minioadmin
|
|
MINIO_SECRET_KEY: minioadmin
|
|
MINIO_BUCKET: dutchie
|
|
MINIO_USE_SSL: "false"
|
|
JWT_SECRET: local_dev_jwt_secret_change_in_production
|
|
ADMIN_EMAIL: admin@example.com
|
|
ADMIN_PASSWORD: password
|
|
ports:
|
|
- "3010:3000"
|
|
volumes:
|
|
- ./backend:/app
|
|
- /app/node_modules
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
minio:
|
|
condition: service_healthy
|
|
command: npm run dev
|
|
|
|
frontend:
|
|
build:
|
|
context: ./frontend
|
|
dockerfile: Dockerfile.dev
|
|
container_name: dutchie-frontend
|
|
environment:
|
|
VITE_API_URL: "http://localhost:3010"
|
|
ports:
|
|
- "5180:5173"
|
|
volumes:
|
|
- ./frontend:/app
|
|
- /app/node_modules
|
|
depends_on:
|
|
- backend
|
|
command: npm run dev
|
|
|
|
volumes:
|
|
postgres_data:
|
|
minio_data:
|