version: '3.8' services: postgres: image: postgres:16 environment: POSTGRES_USER: postgres POSTGRES_PASSWORD_FILE: /run/secrets/postgres_password volumes: - postgres_data:/var/lib/postgresql/data - /etc/postgres-init:/docker-entrypoint-initdb.d networks: - erda-net secrets: - postgres_password - fusionauth_db_password - n8n_db_password - app_db_password deploy: replicas: 1 placement: constraints: - node.hostname == ip-10-0-1-173 restart_policy: condition: on-failure delay: 5s max_attempts: 3 volumes: postgres_data: networks: erda-net: external: true secrets: postgres_password: external: true fusionauth_db_password: external: true n8n_db_password: external: true app_db_password: external: true