Skip to content

Instantly share code, notes, and snippets.

@mickambar19
Created November 20, 2017 18:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mickambar19/d837e28c611c304130c318c9b3f4a6be to your computer and use it in GitHub Desktop.
Save mickambar19/d837e28c611c304130c318c9b3f4a6be to your computer and use it in GitHub Desktop.
You can use this file on any laravel project, just make sure to add the docker file with the correct name
version: '3.3'
services:
db:
image: postgres:9.4
restart: always
ports:
- 5432:5432
volumes:
- ./db-data:/var/lib/postgresql/data
environment:
POSTGRES_DB: dbname
POSTGRES_USER: dbuser
POSTGRES_PASSWORD: dbpassword
networks:
- back
backend:
depends_on:
- db
build:
context: .
dockerfile: ./Dockerfile-php-apache-composer
volumes:
- "./src:/var/www/html"
restart: always
ports:
- 80:80
networks:
- back
networks:
back:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment