Skip to content

Instantly share code, notes, and snippets.

@zrod
Created June 21, 2018 18:20
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 zrod/f4fbd8619184d4424509604e32e5fc2f to your computer and use it in GitHub Desktop.
Save zrod/f4fbd8619184d4424509604e32e5fc2f to your computer and use it in GitHub Desktop.
version: '2'
services:
postgres:
image: 'postgres:10.2'
restart: 'always'
ports:
- '5404:5432'
environment:
POSTGRES_USER: 'dev-sql'
POSTGRES_PASSWORD: 'sqlAdmin!'
php:
build:
context: './docker/php'
volumes:
- './:/var/www/html'
depends_on:
- 'postgres'
restart: 'always'
nginx:
image: 'nginx'
build:
context: './docker/nginx'
volumes:
- './:/var/www/html'
ports:
- '80:80'
- '443:443'
depends_on:
- 'php'
restart: 'always'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment