postgres: restart: always image: postgres:9.4.4 ports: - "5432:5432" # Bind host port 5432 to PostgreSQL port 5432 volumes: - ./db/dumps:/app-db-dumps - ./db/postgres-setup.sql/docker-entrypoint-initdb.d/setup.sql environment: LC_ALL: C.UTF-8 POSTGRES_PASSWORD: 3x1mpl3 mongo: image: mongo:3.0.7 ports: - "27017:27017" command: --smallfiles --rest --auth redis: image: redis:3.0.4 ports: - "6379:6379" # Bind host port 6379 to Redis port 6379 web: &app_base build: . ports: - "80:80" volumes: - .:/Nyvur links: &app_links - postgres:postgres.local - redis:redis.local environment: &app_environment # PostgreSQL Development Database: # DATABASE_URL: postgres://postgres:3x1mpl3@postgres.local:5432/App_production?pool=25&encoding=unicode&schema_search_path=public REDIS_URL: redis://redis.local:6379 SIDEKIQ_CONCURRENCY: 5 SIDEKIQ_TIMEOUT: 10 ENABLE_DEBUG_SERVER: true RACK_ENV: production RAILS_ENV: production worker: <<: *app_base ports: [] command: sidekiq -c 25 -e production -q default environment: SECRET_KEY_BASE: e09afa8b753cb175bcef7eb5f737accd02a4c16d9b6e5d475943605abd4277cdf47c488812d21d9c7117efd489d876f34be52f7ef7e88b21759a079339b198ce environment: # SECRET_KEY_BASE: RAILS_ENV: production