diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..461ba75 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,31 @@ +version: '3' +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: + 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/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/ \ No newline at end of file