Created
October 17, 2018 04:35
-
-
Save ignaciojonas/2a401ea72a3955f3337c4faf9ce946d3 to your computer and use it in GitHub Desktop.
Docker Compose Production travis-example
This file contains 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: | |
# The Application | |
laravel: | |
image: . | |
ports: | |
- "80:80" | |
environment: | |
- "DB_PORT=5432" | |
- "DB_HOST=database" | |
depends_on: | |
- database | |
# The Database | |
database: | |
image: postgres:9.6 | |
volumes: | |
- dbdata:/var/lib/pgsql | |
environment: | |
- "POSTGRES_USER=travis" | |
- "POSTGRES_PASSWORD=travis123!" | |
- "POSTGRES_DB=travis" | |
ports: | |
- "54321:5432" | |
volumes: | |
dbdata: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment