1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
version: "2.4"
services:
# postgres:
# container_name: flipper_postgres
# image: postgres:9.4
redis:
container_name: flipper_redis
image: redis:6.2.5
mongo:
container_name: flipper_mongo
image: mongo:4.4.8
memcached:
container_name: flipper_memcached
image: memcached:1.4.33
app:
container_name: flipper_app
build:
context: .
dockerfile: Dockerfile
volumes:
- .:/srv/app
volumes_from:
- bundle_cache
links:
# - postgres
- redis
- mongo
- memcached
environment:
- REDIS_URL=redis://redis:6379
- MONGODB_HOST=mongo
- MEMCACHED_URL=memcached:11211
bundle_cache:
container_name: flipper_bundle_cache
image: busybox
volumes:
- /bundle_cache
|