Something went wrong. Try again.
forked from ngerakines.me/atproto-crates
Something went wrong. Try again.
4.5 kB · 139 lines
YAML
at F-RATELIM-47
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140name: wccluster
networks: edge: { driver: bridge }
volumes: pds1_data: {} pds2_data: {} spacehost_data: {} appview_data: {}
services: pds1: image: ${PDS_IMAGE} build: { context: .., dockerfile: crates/atproto-pds/Dockerfile, args: { BUILD_REV: dev } } container_name: pds1 hostname: pds1 restart: unless-stopped env_file: [ env/pds1.env ] volumes: - pds1_data:/var/lib/pds:Z - ./secrets/pds1:/run/secrets:ro,Z entrypoint: ["/bin/sh", "-c"] command: - > export PDS_JWT_SECRET="$$(cat /run/secrets/jwt_secret)" && export PDS_ADMIN_PASSWORD="$$(cat /run/secrets/admin_password)" && export PDS_OAUTH_KEYS_JWK_SET="$$(cat /run/secrets/oauth_jwks.json)" && exec /usr/local/bin/pds networks: [edge] healthcheck: test: ["CMD", "curl", "-fsS", "http://127.0.0.1:3000/xrpc/_health"] interval: 30s timeout: 5s retries: 3 start_period: 20s
pds2: image: ${PDS_IMAGE} build: { context: .., dockerfile: crates/atproto-pds/Dockerfile, args: { BUILD_REV: dev } } container_name: pds2 hostname: pds2 restart: unless-stopped env_file: [ env/pds2.env ] volumes: - pds2_data:/var/lib/pds:Z - ./secrets/pds2:/run/secrets:ro,Z entrypoint: ["/bin/sh", "-c"] command: - > export PDS_JWT_SECRET="$$(cat /run/secrets/jwt_secret)" && export PDS_ADMIN_PASSWORD="$$(cat /run/secrets/admin_password)" && export PDS_OAUTH_KEYS_JWK_SET="$$(cat /run/secrets/oauth_jwks.json)" && exec /usr/local/bin/pds networks: [edge] healthcheck: test: ["CMD", "curl", "-fsS", "http://127.0.0.1:3000/xrpc/_health"] interval: 30s timeout: 5s retries: 3 start_period: 20s
space-host: image: ${PDS_IMAGE} build: { context: .., dockerfile: crates/atproto-pds/Dockerfile, args: { BUILD_REV: dev } } container_name: space-host hostname: space-host restart: unless-stopped env_file: [ env/space-host.env ] volumes: - spacehost_data:/var/lib/pds:Z - ./secrets/space-host:/run/secrets:ro,Z entrypoint: ["/bin/sh", "-c"] command: - > export PDS_JWT_SECRET="$$(cat /run/secrets/jwt_secret)" && export PDS_ADMIN_PASSWORD="$$(cat /run/secrets/admin_password)" && export PDS_OAUTH_KEYS_JWK_SET="$$(cat /run/secrets/oauth_jwks.json)" && exec /usr/local/bin/pds networks: [edge] healthcheck: test: ["CMD", "curl", "-fsS", "http://127.0.0.1:3000/xrpc/_health"] interval: 30s timeout: 5s retries: 3 start_period: 20s
appview: image: ${APPVIEW_IMAGE} # Context is the REPO ROOT so ../crates + the parent Cargo.toml are visible # for the appview's path-deps and workspace inheritance. build: { context: .., dockerfile: walking-club-appview/Dockerfile, args: { BUILD_REV: dev } } container_name: appview hostname: appview restart: unless-stopped env_file: [ env/appview.env ] volumes: - ./secrets/appview:/run/secrets:ro,Z - appview_data:/data:Z entrypoint: ["/bin/sh", "-c"] command: - > export COOKIE_SECRET="$$(cat /run/secrets/cookie_secret)" && export OAUTH_PRIVATE_KEYS="$$(cat /run/secrets/oauth_private_keys)" && export ADMIN_PASSWORD="$$(cat /run/secrets/admin_password)" && exec /usr/local/bin/walking_club_appview networks: [edge] depends_on: pds1: { condition: service_healthy } pds2: { condition: service_healthy } space-host: { condition: service_healthy } healthcheck: test: ["CMD", "curl", "-fsS", "http://127.0.0.1:8080/_ready"] interval: 15s timeout: 5s retries: 5 start_period: 20s
cloudflared: image: ${CLOUDFLARED_IMAGE} container_name: cloudflared hostname: cloudflared restart: unless-stopped command: [ tunnel, --no-autoupdate, --config, /etc/cloudflared/config.yml, run ] volumes: - ./cloudflared/config.yml:/etc/cloudflared/config.yml:ro,Z - ./secrets/cloudflared:/etc/cloudflared/creds:ro,Z networks: [edge] depends_on: pds1: { condition: service_healthy } pds2: { condition: service_healthy } space-host: { condition: service_healthy } appview: { condition: service_healthy } healthcheck: test: ["CMD-SHELL", "pgrep cloudflared || exit 1"] interval: 30s timeout: 5s retries: 3 start_period: 15s