Hello World

Be Happy!

Docker compose Production mode


prod mode use multiple docker-compose file
docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d
web:
  image: example/my_web_app:latest
  links:
    - db
    - cache

db:
  image: postgres:latest

cache:
  image: redis:latest


docker-compose.prod.yml
web:
  ports:
    - 80:80
  environment:
    PRODUCTION: 'true'

cache:
  environment:
    TTL: '500'
#docker-compose (7) #docker (21)
List