Advertisement
Guest User

Untitled

a guest
Mar 2nd, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. version: '2'
  2. services:
  3. doorman:
  4. image: doorman
  5. container_name: "doorman"
  6. build:
  7. context: ./doorman
  8. dockerfile: Dockerfile_doorman
  9. links:
  10. - doormanpostgres
  11. expose:
  12. - "5000"
  13. ports:
  14. - "0.0.0.0:5000:5000"
  15. depends_on:
  16. - doormanpostgres
  17. environment:
  18. - DEBUG=true
  19. - ENV=prod
  20. - DOORMAN_ENROLL_SECRET=foo
  21. - DOORMAN_SECRET_KEY=secret-key
  22. - POSTGRES_USER=doorman
  23. - POSTGRES_PASSWORD=prprprpr
  24. - POSTGRES_PORT=doormanpostgres:5432
  25.  
  26. doormanpostgres:
  27. image: postgres:alpine
  28. container_name: "doorman-postgres"
  29. volumes:
  30. - postgresdata:/var/lib/postgresql/data
  31. expose:
  32. - 5432
  33. environment:
  34. - POSTGRES_USER=doorman
  35. - POSTGRES_PASSWORD=prprprpr
  36. volumes:
  37. postgresdata:
  38. driver: local
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement