volumes: db-data: debug-mail: debug-slack: attachments: services: db: image: postgres:15 ports: - ${POSTGRES_PORT:-5432}:5432 volumes: - db-data:/var/lib/postgresql/data environment: POSTGRES_HOST_AUTH_METHOD: trust PGUSER: postgres healthcheck: test: [ "CMD", "pg_isready" ] interval: 1s timeout: 3s retries: 30 memcached1: image: memcached:1-alpine command: memcached -m 16 -c 32 memcached2: image: memcached:1-alpine command: memcached -m 16 -c 32 autograph-db: build: # Keep this ref in sync with the `autograph` image tag below (Dependabot only # bumps the image). The schema it loads is at # https://github.com/mozilla-services/autograph/blob/9.0.1/database/schema.sql context: https://github.com/mozilla-services/autograph.git#9.0.1:database environment: POSTGRES_DB: autograph POSTGRES_HOST_AUTH_METHOD: trust PGUSER: postgres healthcheck: test: [ "CMD", "pg_isready", "-d", "autograph" ] interval: 1s timeout: 3s retries: 30 autograph: platform: linux/amd64 # Keep this tag in sync with the `autograph-db` build context ref above. image: mozilla/autograph:9.0.3-amd64 user: root depends_on: autograph-db: condition: service_healthy environment: # The role is created by the Autograph schema; no password is needed since # `autograph-db` trusts all connections. - AUTOGRAPH_DB_DSN=postgres://myautographdbuser@autograph-db/autograph?sslmode=disable ports: - 8000:8000 healthcheck: test: ["CMD", "curl", "-fsS", "http://localhost:8000/__lbheartbeat__"] interval: 30s timeout: 5s retries: 2 start_period: 20s start_interval: 1s web: build: dockerfile: RemoteSettings.Dockerfile context: . image: remotesettings/local pull_policy: build # root so the process can write to the named volumes mounted below user: root depends_on: db: condition: service_healthy memcached1: condition: service_started memcached2: condition: service_started autograph: condition: service_healthy environment: - KINTO_CACHE_BACKEND=kinto.core.cache.memcached - KINTO_CACHE_HOSTS=memcached1:11211 memcached2:11211 - KINTO_STORAGE_BACKEND=kinto.core.storage.postgresql - KINTO_STORAGE_URL=postgresql://postgres@db/postgres - KINTO_PERMISSION_BACKEND=kinto.core.permission.postgresql - KINTO_PERMISSION_URL=postgresql://postgres@db/postgres - GRANIAN_ACCESS_LOG=true - KINTO_SLACK_DEBUG_DIR=/app/slack # Serve attachments at /attachments - GRANIAN_STATIC_PATH_ROUTE=/attachments - GRANIAN_STATIC_PATH_MOUNT=/tmp/attachments volumes: - debug-mail:/app/mail - debug-slack:/app/slack - attachments:/tmp/attachments - ${CONFIG_MOUNT:-./config:/app/config} - ${SRC_MOUNT:-./kinto-remote-settings:/app/kinto-remote-settings} healthcheck: test: ["CMD", "curl", "-fsS", "http://localhost:8888/v1/__lbheartbeat__"] interval: 30s timeout: 5s retries: 2 start_period: 20s start_interval: 1s git-reader: build: context: git-reader/ args: UID: 1000 GID: 1000 environment: - GIT_REPO_PATH=/mnt/data/latest - SELF_CONTAINED=true volumes: - ./git-reader/data:/mnt/data browser-tests: build: context: browser-tests/ image: remotesettings/browser-tests profiles: [browser-tests] # Share web-proxy's network, so that localhost:8888 reaches the proxy from inside this # container. network_mode: service:web-proxy depends_on: web: condition: service_healthy environment: - SERVER=http://localhost:8888/v1 - MAIL_DIR=/var/debug-mail/ - SLACK_DIR=/var/debug-slack/ volumes: - debug-mail:/var/debug-mail/ - debug-slack:/var/debug-slack/ shm_size: 2gb cronjobs: build: context: cronjobs/ image: remotesettings/cronjobs profiles: [cronjobs] web-proxy: image: openresty/openresty ports: - 8888:8888 volumes: - ./config/nginx.conf:/etc/nginx/conf.d/default.conf depends_on: web: condition: service_healthy git-reader: condition: service_started