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: $COMMENTO_ORIGIN COMMENTO_SMTP_PASSWORD: $COMMENTO_SMTP_PASSWORD COMMENTO_ASKIMET_KEY: $COMMENTO_ASKIMET_KEY COMMENTO_SMTP_HOST: $COMMENTO_SMTP_HOST COMMENTO_SMTP_PORT: $COMMENTO_SMTP_PORT COMMENTO_SMTP_USERNAME: $COMMENTO_SMTP_USERNAME COMMENTO_SMTP_FROM_ADDRESS: $COMMENTO_SMTP_FROM_ADDRESS COMMENTO_GITHUB_KEY: $COMMENTO_GITHUB_KEY COMMENTO_GITHUB_SECRET: $COMMENTO_GITHUB_SECRET COMMENTO_FORBID_NEW_OWNERS: $COMMENTO_FORBID_NEW_OWNERS COMMENTO_PORT: 8080 COMMENTO_POSTGRES: postgres://commento:${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: ${COMMENTO_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