Created
February 15, 2019 10:00
-
-
Save thephucit/fbc6392d64073a87dadedf1ab9968c87 to your computer and use it in GitHub Desktop.
config docker composer: php, nginx, postgres, mysql, etc ...
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" | |
| 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