-
-
Save moisei/328be3b74faf00c027625a5ea62dc7db to your computer and use it in GitHub Desktop.
docker-compose template
This file contains hidden or 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
| COMPOSE_PROJECT_NAME=template | |
| VAR_FROM_FILE=anyvalue | |
| VAR_FROM_FILE_WITH_THE_SAME_NAME=any_other_value |
This file contains hidden or 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: '3.7' | |
| services: | |
| foo: | |
| image: busybox | |
| environment: | |
| - ANYVAR=anyvalue | |
| - VAR_FROM_FILE=${value_from_file} | |
| - VAR_FROM_FILE_WITH_THE_SAME_NAME | |
| volumes: | |
| - data:/data | |
| - /etc/timezone:/etc/timezone:ro | |
| - /etc/localtime:/etc/localtime:ro | |
| - /var/run/docker.sock:/var/run/docker.sock:ro | |
| ports: | |
| - 12345:80 | |
| restart: unless-stopped | |
| volumes: | |
| data: | |
| networks: | |
| default__: | |
| driver: bridge | |
| ipam: | |
| driver: default | |
| config: | |
| - subnet: 33.0.0.1/16 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment