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.
splits-io docker-compose.yml
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697version: '3.7'x-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 - RAILS_LOG_TO_STDOUT=true # Log to stdout so docker/docker-compose can take over logs - RAILS_ENV=development - RAILS_ROOT="/app" - READ_ONLY_MODE=0 - REDIS_URL="redis/0" - S3_BUCKET=splits-io - SITE_TITLE=Splits.io (Local) - SPLITSIO_CLIENT_ID - SPLITSIO_CLIENT_SECRET - TWITCH_CLIENT_ID - TWITCH_CLIENT_SECRETx-logging: &default-logging driver: json-file options: max-size: 1m max-file: "1"
services: db: image: postgres logging: *default-logging volumes: - ./db/init.sql:/docker-entrypoint-initdb.d/10-init.sql s3: expose: - "4569" image: lphoward/fake-s3 logging: *default-logging ports: - 4569:4569 webpacker: build: . command: bash -c "yarn install && ruby bin/webpack-dev-server" environment: - SPLITSIO_CLIENT_ID expose: - "3035" image: webpacker logging: *default-logging ports: - 3035:3035 volumes: - .:/app web: build: context: . dockerfile: Dockerfile command: bash -c "rm -f /app/tmp/pids/server.pid && bundle install && bundle exec rails db:migrate && bundle exec rails s -p 3000 -b '0.0.0.0'" depends_on: - db - s3 - webpacker - worker - redis environment: *server-environment image: web links: - s3:s3.localhost - webpacker:webpacker.localhost logging: *default-logging ports: - 3000:3000 stdin_open: true tty: true volumes: - ./:/app worker: build: . command: bash -c "rm -f /app/tmp/pids/delayed*.pid && bundle exec rake jobs:work" depends_on: - db - s3 environment: *server-environment image: worker links: - s3:s3.localhost logging: *default-logging ports: [] stdin_open: true tty: true redis: image: redis logging: *default-logging