Guest User

Untitled

a guest
Jan 22nd, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. version: '3.1'
  2.  
  3. # Define the services/containers to be run
  4. services:
  5. ambassador:
  6. image: quay.io/datawire/ambassador:0.40.2
  7. ports:
  8. - 80:80
  9. volumes:
  10. # mount a volume where we can inject configuration files
  11. - ./config:/ambassador/config
  12. postgres:
  13. image: my-postgresql
  14. ports:
  15. - '5432:5432'
  16.  
  17. ---
  18. apiVersion: ambassador/v0
  19. kind: Mapping
  20. name: postgres_mapping
  21. rewrite: ""
  22. service: postgres:5432
  23. volumes:
  24. - ../my-postgres:/docker-entrypoint-initdb.d
  25. environment:
  26. - POSTGRES_MULTIPLE_DATABASES=db1, db2, db3
  27. - POSTGRES_USER=<>
  28. - POSTGRES_PASSWORD=<>
Add Comment
Please, Sign In to add comment