version: "3.8"

services:
  pocketbase:
    image: ghcr.io/muchobien/pocketbase:latest
    container_name: checkflo-pocketbase
    restart: unless-stopped
    volumes:
      - /volume1/docker/checkflo/pocketbase/data:/pb_data
      - /volume1/docker/checkflo/pocketbase/storage:/pb_public
    environment:
      - TZ=Europe/Berlin
    networks:
      - default
      - npm_bridge

  app:
    build:
      context: ./app
      dockerfile: Dockerfile
    image: checkflo-app
    container_name: checkflo-app
    restart: unless-stopped
    environment:
      - TZ=Europe/Berlin
      - HOST=0.0.0.0
      - PORT=3000
    networks:
      - default
      - npm_bridge

networks:
  npm_bridge:
    external: true
    name: nginx-proxy-manager_bridge_net
