Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/glacials/splits-io. a speedrunning data store and analysis engine splits.io
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121version: '3.7'x-server-environment: &server-environment - AWS_REGION=local - AWS_ACCESS_KEY_ID=beep - AWS_SECRET_KEY=boop - ENABLE_ADS=0 - GOOGLE_CLIENT_ID - GOOGLE_CLIENT_SECRET - NODE_ENV=development - PATREON_CLIENT_ID - PATREON_CLIENT_SECRET - QUEUES=discover_runner,highlight_cleanup,race_cleanup,sync_user_follows,v4_races,parse_run,cleanup_runs,active_storage_purge,active_storage_analysis # also update docker-compose-production.yml - RAILS_LOG_TO_STDOUT=true # Log to stdout so docker/docker-compose can take over logs - RAILS_ENV - RAILS_ROOT="/app" - READ_ONLY_MODE=0 - REDIS_URL="redis/0" - RUST_BACKTRACE=1 - S3_BUCKET=splits-io - SITE_TITLE=Splits.io (Local) - SPLITSIO_CLIENT_SECRET - SPLITSIO_CLIENT_ID - STRIPE_HOTSAUCE_SKU=sku_Gz2u7Mp3bWzYAk - STRIPE_PLAN_ID_TIER1=plan_FmRDE979W782Zj - STRIPE_PLAN_ID_TIER2=plan_FmRDa9Hhf1lwMQ - STRIPE_PLAN_ID_TIER3=plan_GDlCHoXN5YCCUg - STRIPE_PUBLISHABLE_KEY=pk_test_8XH713ExTipOnBebjfsHHffm - STRIPE_SECRET_KEY - STRIPE_WEBHOOK_SECRET - TWITCH_CLIENT_ID - TWITCH_CLIENT_SECRETx-client-environment: &client-environment - SPLITSIO_CLIENT_ID - STRIPE_PUBLISHABLE_KEY=pk_test_8XH713ExTipOnBebjfsHHffmx-logging: &default-logging driver: json-file options: max-size: 1m max-file: "1"x-app: &app build: context: . dockerfile: Dockerfile cache_from: - "${REPOSITORY_URI:-splitsio}:latest" args: RUBY_VERSION: '2.7.1' # also update docker-compose-production.yml & Gemfile image: splitsio tmpfs: - /tmpx-backend: &backend <<: *app stdin_open: true tty: true volumes: - .:/app - ./bundle:/bundle - ./node_modules:/app/node_modules - packs:/app/public/packs - rails_cache:/app/tmp/cache links: - s3:s3.localhost depends_on: - db - s3 - redis
services: db: image: postgres:11.5 logging: *default-logging volumes: - ./db/init.sql:/docker-entrypoint-initdb.d/10-init.sql - db:/var/lib/postgresql/data s3: image: lphoward/fake-s3 logging: *default-logging ports: - 4569:4569 volumes: - s3:/fakes3_root webpacker: <<: *app command: bash -c "ruby bin/webpack-dev-server" environment: *client-environment logging: *default-logging ports: - 3035:3035 volumes: - .:/app - ./bundle:/bundle - packs:/app/public/packs - rails_cache:/app/tmp/cache web: <<: *backend command: bash -c "rm -f /app/tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'" environment: *server-environment logging: *default-logging ports: - 3000:3000 worker: <<: *backend command: bash -c "rm -f /app/tmp/pids/delayed*.pid && bundle exec rake jobs:work" environment: *server-environment logging: *default-logging redis: image: redis:5.0.5 logging: *default-logging volumes: - redis:/data
volumes: db: packs: rails_cache: redis: s3: