Guest User

Untitled

a guest
Nov 7th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. version: "2"
  2. services:
  3. myappserver:
  4. image: "ubuntu:16.04"
  5. container_name: myappserver
  6. volumes:
  7. - "./bin/:/usr/local/bin/:ro"
  8. depends_on:
  9. - postgres
  10. - redis
  11. ports:
  12. - "9900:9900"
  13. command: tail -f /dev/null
  14.  
  15. postgres:
  16. image: "postgres:9.5-alpine"
  17. container_name: postgres
  18. ports:
  19. - "5433:5432"
  20. volumes:
  21. - "./dev-files/sql/:/docker-entrypoint-initdb.d/"
  22. environment:
  23. POSTGRES_USER: myappuser
  24. POSTGRES_PASSWORD: password
  25. POSTGRES_DB: myapp
  26.  
  27. redis:
  28. image: "redis:3.0-alpine"
  29. container_name: redis
  30. ports:
  31. - "6380:6379"
Add Comment
Please, Sign In to add comment