Skip to content

Instantly share code, notes, and snippets.

@dimensi
Created March 14, 2019 12:00
Show Gist options
  • Save dimensi/8377c2e7f17839f641011c6b37b127c0 to your computer and use it in GitHub Desktop.
Save dimensi/8377c2e7f17839f641011c6b37b127c0 to your computer and use it in GitHub Desktop.
version: '3'
services:
web:
image: nginx
volumes:
- ./.docker/conf/nginx/default.conf:/etc/nginx/conf.d/default.conf
- .:/var/www/html
ports:
- 5000:80
restart: always
depends_on:
- php
- db
php:
build: .docker
restart: always
volumes:
- ./.docker/conf/php/php.ini:/usr/local/etc/php/conf.d/php.ini
- ./.docker/conf/php/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini
- .:/var/www/html
db:
image: postgres:10.1
restart: always
environment:
- POSTGRES_DB=${DB_NAME}
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASSWORD}
ports:
- 5432:5432
volumes:
- ./.docker/conf/postgres/:/docker-entrypoint-initdb.d/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment