version: '3.8' services: calcom-postgres: container_name: {{ customer }}-calcom-postgres image: postgres:16 #original postgres restart: always volumes: - {{ customer }}-calcom-postgres:/var/lib/postgresql/data/ - {{ customer }}-calcom-backups:/tmp/backups env_file: /opt/letsbe/env/calcom.env networks: {{ customer }}-calcom: ipv4_address: 172.20.18.2 calcom: container_name: {{ customer }}-calcom image: calcom/cal.com:latest restart: always labels: - "diun.enable=true" ports: - '127.0.0.1:3018:3000' env_file: /opt/letsbe/env/calcom.env environment: - DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${DATABASE_HOST}/${POSTGRES_DB} depends_on: - calcom-postgres networks: {{ customer }}-calcom: ipv4_address: 172.20.18.3 networks: {{ customer }}-calcom: ipam: driver: default config: - subnet: 172.20.18.0/28 gateway: 172.20.18.1 volumes: {{ customer }}-calcom-postgres: {{ customer }}-calcom-backups: