Skip to content

Instantly share code, notes, and snippets.

@rolldone
Last active April 14, 2021 11:13
Show Gist options
  • Save rolldone/acc689631ff0f089a3d8dab220144a9c to your computer and use it in GitHub Desktop.
Save rolldone/acc689631ff0f089a3d8dab220144a9c to your computer and use it in GitHub Desktop.
docker-compose-templates.md
# 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