Skip to content

Instantly share code, notes, and snippets.

@shin1x1
Created June 20, 2020 02:07
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 shin1x1/a74e3a06203a13e5660d91befc2a195d to your computer and use it in GitHub Desktop.
Save shin1x1/a74e3a06203a13e5660d91befc2a195d to your computer and use it in GitHub Desktop.
version: '3'
services:
nginx:
image: shin1x1/laravel-nginx118
ports:
- '8000:80'
volumes:
- .:/var/www/html
depends_on:
- php
php:
image: shin1x1/laravel-php74-pgsql
volumes:
- .:/var/www/html
depends_on:
- db
- db-test
db: &db
image: postgres:12-alpine
environment:
- POSTGRES_USER=app
- POSTGRES_PASSWORD=pass
- POSTGRES_DB=app
- LC_ALL=C
db-test:
*db
composer:
image: composer:1.10
volumes:
- .:/var/www/html
working_dir: /var/www/html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment