Created
November 20, 2017 18:02
-
-
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
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.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