version: "3.7" services: commento: deploy: placement: constraints: [node.labels.com.sigyl.git-stack-data == yes] replicas: 1 restart_policy: condition: any image: registry.gitlab.com/commento/commento:latest environment: COMMENTO_ORIGIN: $ORIGIN COMMENTO_SMTP_PASSWORD: $SMTP_PASSWORD COMMENTO_ASKIMET_KEY: $ASKIMET_KEY COMMENTO_SMTP_HOST: $SMTP_HOST COMMENTO_SMTP_PORT: $SMTP_PORT COMMENTO_SMTP_USERNAME: $SMTP_USERNAME COMMENTO_SMTP_FROM_ADDRESS: $SMTP_FROM_ADDRESS COMMENTO_GITHUB_KEY: $GITHUB_KEY COMMENTO_GITHUB_SECRET: $GITHUB_SECRET COMMENTO_FORBID_NEW_OWNERS: $FORBID_NEW_OWNERS COMMENTO_PORT: 8080 COMMENTO_POSTGRES: postgres://commento:${POSTGRES_PASSWORD}@commento-postgres:5432/commento?sslmode=disable networks: - appnet - externalnet commento-postgres: deploy: placement: constraints: [node.labels.com.sigyl.git-stack-data == yes] replicas: 1 restart_policy: condition: any image: postgres:11-alpine environment: POSTGRES_DB: commento POSTGRES_USER: commento POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} networks: - appnet volumes: - commento-postgresql-data:/var/lib/postgresql/data volumes: commento-postgresql-data: networks: appnet: driver: overlay #external: true externalnet: driver: overlay external: true