Last active
April 14, 2021 11:13
-
-
Save rolldone/acc689631ff0f089a3d8dab220144a9c to your computer and use it in GitHub Desktop.
docker-compose-templates.md
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
# Simple docker template | |
version: '3' | |
services: | |
nginx: | |
image : rolldone/nginx:1 | |
working_dir: '/var/www/html' | |
command : > | |
bash -c " | |
ls -a -l && | |
nginx -g 'daemon off;'" | |
volumes: | |
- "project_vol:/var/www/html" | |
#ports: | |
#- ":80" | |
#networks: | |
#- nginxproxymanager_default | |
links: | |
- app | |
app: | |
image: rolldone/image_php7.2-fpm:1 | |
working_dir: '/var/www/html' | |
command : > | |
bash -c " | |
php-fpm" | |
volumes: | |
- "project_vol:/var/www/html" | |
- "git_vol:/root/.ssh" | |
volumes: | |
project_vol: | |
external: true | |
git_vol: | |
external: true | |
networks: | |
default: | |
external: | |
name: main_network |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment