services: pritunl-zero: container_name: pritunl-zero-front-${IP}-${PORT_HTTPS}-${PORT_HTTP} ports: - ${IP}:${PORT_HTTP}:80 - ${IP}:${PORT_HTTPS}:443 environment: - MONGO_URI=mongodb://${IP}:${DB_PORT}/pritunl-zero - NODE_ID=${ID} image: docker.io/pritunl/pritunl-zero mongodb: image: mongo:latest container_name: pritunl-zero-back-${IP}-${DB_PORT} restart: unless-stopped ports: - ${IP}:${DB_PORT}:27017 volumes: - ${DATA_DIR}/data/mongodb:/data/db