Skip to content

Instantly share code, notes, and snippets.

@ignaciojonas
Created October 17, 2018 04:35
Show Gist options
  • Save ignaciojonas/2a401ea72a3955f3337c4faf9ce946d3 to your computer and use it in GitHub Desktop.
Save ignaciojonas/2a401ea72a3955f3337c4faf9ce946d3 to your computer and use it in GitHub Desktop.
Docker Compose Production travis-example
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