Skip to content

Instantly share code, notes, and snippets.

@thephucit
Created February 15, 2019 10:00
Show Gist options
  • Select an option

  • Save thephucit/fbc6392d64073a87dadedf1ab9968c87 to your computer and use it in GitHub Desktop.

Select an option

Save thephucit/fbc6392d64073a87dadedf1ab9968c87 to your computer and use it in GitHub Desktop.
config docker composer: php, nginx, postgres, mysql, etc ...
version: "3"
services:
web:
image: webdevops/php-nginx:7.1
ports:
- "8082:80"
volumes:
- /Users/tunlookup/Documents/cmerp:/app # change path to your project
environment:
- PHP_DEBUGGER=xdebug
- PHP_DISPLAY_ERRORS=1
- PHP_DATE_TIMEZONE=Asia/Ho_Chi_Minh
- WEB_DOCUMENT_ROOT=/app
depends_on:
- postgres
postgres:
image: postgres
restart: always
ports:
- 5432:5432
volumes:
- ./db_data:/var/lib/postgresql/data
environment:
POSTGRES_USER: "admin"
POSTGRES_PASSWORD: "root"
POSTGRES_DB: "cmerp"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment