Skip to content

Instantly share code, notes, and snippets.

@vovanmix
Last active October 2, 2017 06:26
Show Gist options
  • Save vovanmix/fc788fb0bc311d51072ff0dd67422b24 to your computer and use it in GitHub Desktop.
Save vovanmix/fc788fb0bc311d51072ff0dd67422b24 to your computer and use it in GitHub Desktop.
Docker-compose config volumes
version: '2'
services:
nginx:
container_name: dur_backend_nginx
image: nginx:alpine
volumes_from:
- config
volumes:
- /etc/nginx
links:
- webapp
ports:
- 0:80
config:
container_name: dur_backend_config
build:
context: deployment/config
dockerfile: Dockerfile
volumes:
- /etc/nginx
FROM busybox
COPY nginx.conf /etc/nginx/nginx.conf
COPY mime.types /etc/nginx/mime.types
COPY awslogs.conf /etc/awslogs/awslogs.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment