Skip to content

Instantly share code, notes, and snippets.

@jasonmccallister
Created June 6, 2016 15:13
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 jasonmccallister/dac7e01f7d8468cff57ec5f0246b6087 to your computer and use it in GitHub Desktop.
Save jasonmccallister/dac7e01f7d8468cff57ec5f0246b6087 to your computer and use it in GitHub Desktop.
web:
image: php:7.0.7-apache
links:
- db:postgres
ports:
- 80:80
volumes:
- .:/var/www/html
db:
image: postgres:9.5.3
ports:
- 5432:5432
environment:
POSTGRES_PASSWORD: docker-postgres
POSTGRES_USER: db_user
POSTGRES_DB: db_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment