--- version: "3.8" services: synapse: environment: - APP_SERVICES_ENABLED - APP_SERVICE_CONFIGS volumes: - discord-data:/discord-data discordbridge: image: halfshot/matrix-appservice-discord:v1.0.0 depends_on: - discorddb configs: - source: discord_bridge_yaml target: /data/config.yaml environment: - DISCORD_CLIENT_ID - DISCORD_BRIDGE_ADMIN - HOMESERVER_DOMAIN - HOMESERVER_URL secrets: - discord_bot_token - discord_db_password volumes: - discord-data:/data networks: - internal discorddb: image: postgres:13-alpine secrets: - discord_db_password environment: - LC_COLLATE=C - LC_CTYPE=C - POSTGRES_DB=discordbridge - POSTGRES_INITDB_ARGS="-E \"UTF8\"" - POSTGRES_PASSWORD_FILE=/run/secrets/discord_db_password - POSTGRES_USER=discordbridge networks: - internal healthcheck: test: ["CMD", "pg_isready", "-U", "$POSTGRES_USER" ] volumes: - discord-postgres:/var/lib/postgresql/data configs: discord_bridge_yaml: name: ${STACK_NAME}_discord_bridge_yaml_${DISCORD_BRIDGE_YAML_VERSION} file: discord_bridge.yaml.tmpl template_driver: golang volumes: discord-data: discord-postgres: secrets: discord_db_password: external: true name: ${STACK_NAME}_discord_db_password_${SECRET_DISCORD_DB_PASSWORD_VERSION} discord_bot_token: external: true name: ${STACK_NAME}_discord_bot_token_${SECRET_DISCORD_BOT_TOKEN_VERSION}