Last active
October 2, 2017 06:26
-
-
Save vovanmix/fc788fb0bc311d51072ff0dd67422b24 to your computer and use it in GitHub Desktop.
Docker-compose config volumes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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