db: image: postgres ports: - "5432" mailcatcher: image: simpledrupalcloud/mailcatcher:latest hostname: mailcatcher ports: - "1080:1080" - "1025" elasticsearch: image: elasticsearch ports: - "9200:9200" - "9300:9300" redis: image: redis ports: - "6379" web: dns: 8.8.8.8 build: . command: bundle exec unicorn -p 8080 volumes: - ./:/myapp ports: - "8080:8080" environment: - REDIS_URL=redis://redis:6379/ # only for redis links: - db - mailcatcher - redis - elasticsearch