version: '3.8'
services:
  db:
    image: postgres:15
    restart: always
    environment:
      POSTGRES_USER: urlaub
      POSTGRES_PASSWORD: geheim
      POSTGRES_DB: urlaubsbilder
    volumes:
      - db_data:/var/lib/postgresql/data

  backend:
    build: ./backend
    ports:
      - "5000:5000"
    environment:
      GOOGLE_CLIENT_ID: your-client-id-here
      GOOGLE_CLIENT_SECRET: your-client-secret-here
      ADMIN_EMAIL: admin@domain.com
    depends_on:
      - db

volumes:
  db_data: