porting all github actions from bluesky-social/indigo to tangled CI
at main 3.0 kB view raw
1version: '3' 2volumes: 3 dbvol: 4 driver: local 5services: 6 db: 7 image: postgres:14.3-alpine 8 restart: always 9 environment: 10 - POSTGRES_USER=bsky 11 - POSTGRES_PASSWORD=yksb 12 # intentionally *not* exposing default postgresql port to host (conflicts with other local dev DBs) 13 command: -p 6543 14 ports: 15 - '6543:6543' 16 expose: 17 - '6543' 18 volumes: 19 - dbvol:/var/lib/postgresql/docker 20 - ./docker-create-dev-dbs.sql:/docker-entrypoint-initdb.d/create-dev-dbs.sql 21 healthcheck: 22 test: ["CMD-SHELL", "pg_isready -p 6543 -U bsky"] 23 interval: 3s 24 timeout: 2s 25 retries: 3 26 27 plc: 28 image: ghcr.io/bluesky-social/did-method-plc:plc-c54aea0373e65df0b87f5bc81710007092f539b1 # DID doc iteration branch 29 ports: 30 - "2582:2582" 31 expose: 32 - "2582" 33 environment: 34 - ENV=dev 35 - DATABASE_URL=postgres://bsky:yksb@db:6543/plc_dev 36 - PORT=2582 37 - DEBUG_MODE=1 38 - LOG_ENABLED=true 39 - LOG_LEVEL=info 40 - LOG_DESTINATION=1 41 working_dir: /app/packages/server 42 command: yarn run start 43 links: 44 - db 45 depends_on: 46 db: 47 condition: service_healthy 48 49 pds-one: 50 image: ghcr.io/bluesky-social/atproto:pds-19d2bdc4576bfabe6609afe160cc2c220c351579 51 ports: 52 - "2583:2583" 53 expose: 54 - "2583" 55 environment: 56 - ENV=dev 57 - DB_POSTGRES_URL=postgres://bsky:yksb@db:6543/pds_dev 58 - AVAILABLE_USER_DOMAINS=.test,.dev.bsky.dev 59 - DID_PLC_URL=http://plc:2582 60 - PORT=2583 61 - DEBUG_MODE=1 62 - LOG_LEVEL=info 63 - LOG_ENABLED=true 64 - LOG_DESTINATION=1 65 working_dir: /app/packages/pds 66 command: yarn run start 67 links: 68 - db 69 - plc 70 depends_on: 71 db: 72 condition: service_healthy 73 plc: 74 condition: service_started 75 76 bgs: 77 # to build/run locally, uncomment this instead 78 #build: ../bigsky/ 79 image: ghcr.io/bluesky-social/indigo:bigsky-ed809269938c453ebed3a05487acc6417d77bb4e 80 ports: 81 - "2470:2470" 82 environment: 83 - ATP_PLC_HOST=http://plc:2582 84 - ATP_PDS_HOST=http://pds-one:2583 85 - GOLOG_LOG_LEVEL=info 86 links: 87 - db 88 - plc 89 - pds-one 90 depends_on: 91 db: 92 condition: service_healthy 93 plc: 94 condition: service_started 95 pds-one: 96 condition: service_started 97 98 appview: 99 image: ghcr.io/bluesky-social/atproto:bsky-19d2bdc4576bfabe6609afe160cc2c220c351579 100 ports: 101 - "2584:2584" 102 expose: 103 - "2584" 104 environment: 105 - ENV=dev 106 - DB_POSTGRES_URL=postgres://bsky:yksb@db:6543/bsky_dev 107 - DID_PLC_URL=http://plc:2582 108 - PORT=2584 109 - DEBUG_MODE=1 110 - LOG_LEVEL=info 111 - LOG_ENABLED=true 112 - LOG_DESTINATION=1 113 working_dir: /app/packages/bsky 114 command: yarn run start 115 links: 116 - db 117 - plc 118 - bgs 119 depends_on: 120 db: 121 condition: service_healthy 122 plc: 123 condition: service_started 124 bgs: 125 condition: service_started