Update 'docker-compose.yml'

This commit is contained in:
ahwelp
2019-06-17 23:30:41 +00:00
parent a17b5bc150
commit a53a1014d2
+1 -25
View File
@@ -1,31 +1,7 @@
version: '3' version: '3'
services: services:
web:
image: nginx
volumes:
- ./.docker/conf/nginx/default.conf:/etc/nginx/conf.d/default.conf
- .:/var/www/html/urfat
ports:
- 80:80
restart: always
depends_on:
- php
- db
php: php:
build: .docker build: .docker
restart: always restart: always
volumes: volumes:
- ./.docker/conf/php/php.ini:/usr/local/etc/php/conf.d/php.ini - .:/var/www/html/urfat
- ./.docker/conf/php/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini
- .:/var/www/html/urfat
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/