Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: "3"
- services:
- api:
- image: "stevelacy/imagehere"
- command: ["/app/init"]
- ports:
- - 80
- depends_on:
- - migration
- networks:
- - api
- environment:
- POSTGRES_HOST: "postgres"
- POSTGRES_USER: "postgres"
- POSTGRES_DATABASE: "postgres"
- POSTGRES_PASSWORD: "postgres"
- migration:
- image: "stevelacy/imagehere"
- command: ["/app/init", "migrate"]
- depends_on:
- - postgres
- networks:
- - api
- environment:
- POSTGRES_HOST: "postgres"
- POSTGRES_USER: "postgres"
- POSTGRES_DATABASE: "postgres"
- POSTGRES_PASSWORD: "postgres"
- postgres:
- image: postgres:10
- volumes:
- - ./db-data:/var/lib/postgresql/data
- networks:
- - api
- environment:
- POSTGRES_PASSWORD: "postgres"
- nginx-proxy:
- image: jwilder/nginx-proxy
- ports:
- - "80:80"
- volumes:
- - /var/run/docker.sock:/tmp/docker.sock:ro
- # Custom nginx config added here:
- - ./nginx.conf:/etc/nginx/conf.d/custom.conf:ro
- networks:
- - api
- # this is for static files from the HOST system.
- nginx:
- image: kyma/docker-nginx
- command: ["nginx"]
- ports:
- - 80
- volumes:
- - ./html/:/var/www/
- environment:
- VIRTUAL_HOST: media.mydomain.com
- networks:
- - api
- networks:
- api:
- volumes:
- db-data:
Add Comment
Please, Sign In to add comment