Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3.1'
- # Define the services/containers to be run
- services:
- ambassador:
- image: quay.io/datawire/ambassador:0.40.2
- ports:
- - 80:80
- volumes:
- # mount a volume where we can inject configuration files
- - ./config:/ambassador/config
- postgres:
- image: my-postgresql
- ports:
- - '5432:5432'
- ---
- apiVersion: ambassador/v0
- kind: Mapping
- name: postgres_mapping
- rewrite: ""
- service: postgres:5432
- volumes:
- - ../my-postgres:/docker-entrypoint-initdb.d
- environment:
- - POSTGRES_MULTIPLE_DATABASES=db1, db2, db3
- - POSTGRES_USER=<>
- - POSTGRES_PASSWORD=<>
Add Comment
Please, Sign In to add comment