Skip to content

Instantly share code, notes, and snippets.

@TwanoO67
Created October 30, 2018 09:23
Show Gist options
  • Save TwanoO67/0085d0e3a166faeb780c70742910394d to your computer and use it in GitHub Desktop.
Save TwanoO67/0085d0e3a166faeb780c70742910394d to your computer and use it in GitHub Desktop.
version: '2.0'
services:
php:
container_name: "laravel"
image: intelligensia/numesia-apache-php
restart: always
volumes:
#On utilise la clef ssh, et config git du poste courant
- "~/.ssh:/root/.ssh"
- "./config/ssh-wwwdata:/var/www/.ssh"
- "~/.gitconfig:/root/.gitconfig"
- "./api:/var/www/html/api"
- "./config/apache:/etc/apache2/sites-enabled/"
working_dir: /var/www/html
ports:
- "${PORT}:80"
networks:
default:
aliases:
- "api.local"
volumes:
db:
driver: "local"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment