Advertisement
Guest User

Untitled

a guest
Apr 16th, 2019
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. version: '2'
  2. services:
  3. app:
  4. image: koda/docker-knowledge
  5. #build: .
  6. volumes:
  7. - ./volumes/knowledge:/root/.knowledge
  8. ports:
  9. - "8080:8080"
  10. restart: always
  11. depends_on:
  12. - "db"
  13.  
  14.  
  15. webserver:
  16. image: nginx:mainline-alpine
  17. container_name: nginx
  18. restart: always
  19. tty: true
  20. volumes:
  21. - .volumes/nginx/:/etc/nginx/conf.d/
  22. ports:
  23. - "443:443"
  24. restart: always
  25. depends_on:
  26. - "app"
  27.  
  28. db:
  29. image: postgres:9
  30. environment:
  31. - POSTGRES_USER=postgres
  32. - POSTGRES_PASSWORD=admin123
  33. - POSTGRES_DB=knowledge_production
  34. volumes:
  35. #- ./volumes/initdb:/docker-entrypoint-initdb.d
  36. - ./volumes/postgres/data:/var/lib/postgresql/data
  37. restart: always
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement