version: '3.8' services: app: build: . ports: - "3000:3000" environment: # Use host.docker.internal to access resources on the host machine - DB_PRIMARY_HOST=host.docker.internal - DB_PRIMARY_USER=${DB_PRIMARY_USER} - DB_PRIMARY_PASS=${DB_PRIMARY_PASS} - DB_PRIMARY_DB=${DB_PRIMARY_DB} - DB_SECONDARY_HOST=host.docker.internal - DB_SECONDARY_USER=${DB_SECONDARY_USER} - DB_SECONDARY_PASS=${DB_SECONDARY_PASS} - DB_SECONDARY_DB=${DB_SECONDARY_DB} - DB_AZURE_HOST=${DB_AZURE_HOST} - DB_AZURE_USER=${DB_AZURE_USER} - DB_AZURE_PASS=${DB_AZURE_PASS} - DB_AZURE_DB=${DB_AZURE_DB} # Use a mounted volume for backups - BACKUP_PATH=/data/backups - PORT=3000 - ORIGIN=http://localhost:3000 volumes: # Map a local folder to the container's backup path - ./backups:/data/backups:ro extra_hosts: - "host.docker.internal:host-gateway"