# farmOS - https://farmos.org/ - https://git.drupalcode.org/project/farm/-/blob/4.x/docker/docker-compose.production.yml?ref_type=heads --- services: farmOS-db: container_name: farmOS-db image: postgres:17 volumes: - './db:/var/lib/postgresql/data' environment: # Set a strong password and optionally change the user/database name. POSTGRES_USER: ${POSTGRES_USER} POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} POSTGRES_DB: ${POSTGRES_DB} restart: unless-stopped farmOS-www: container_name: farmOS-www depends_on: - farmOS-db # Update this to the latest stable version before deploying. image: farmos/farmos:latest volumes: - './sites:/opt/drupal/web/sites' - './keys:/opt/drupal/keys' ports: - '${FARMOS_HTTP_PORT}:80' restart: unless-stopped labels: # Nginx Proxy Manager Automation - "npm.proxy.domains=farm.wompmacho.com" - "npm.proxy.host=${DOCKER_HOST_IP}" - "npm.proxy.port=${FARMOS_HTTP_PORT}" - "npm.proxy.scheme=http" - "npm.proxy.ssl_verify=false" - "npm.proxy.websockets=true" - "npm.proxy.ssl.force=true" - "npm.proxy.ssl.certificate.id=2" #- "npm.proxy.advanced.config=location = / { return 301 /guacamole/; }" # Pi-hole Automation (Point to Docker Host/Proxy IP) - "pihole.custom-record=[[\"farm.wompmacho.com\", \"${DOCKER_HOST_IP}\"]]"