Commit be223d14 authored by Александр Плохих's avatar Александр Плохих 🌔
Browse files

STA-931|setup docker & nginx & db

parent af3d76f1
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
doctrine:
    dbal:
        url: '%env(resolve:DATABASE_URL)%'
        url: '%env(resolve:DB_URL)%'
        user: '%env(resolve:DB_USER)%'
        password: '%env(resolve:DB_PASSWORD)%'

        # IMPORTANT: You MUST configure your server version,
        # either here or in the DATABASE_URL env var (see .env file)
+1 −0
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@ services:
    build:
      context: .
      dockerfile: docker/App.Dockerfile
    container_name: ${APP_NAME}-app
    ports:
      - '9000:9000'
    volumes:
+1 −1
Original line number Diff line number Diff line
FROM php:fpm-alpine

WORKDIR app
WORKDIR var/www/project

COPY app .

+5 −0
Original line number Diff line number Diff line
# --- ignore autogenerated composer files ---
/app/var/
/app/vendor/
/app/composer.lock
# -------------------------------------------
 No newline at end of file

docker/nginx/Dockerfile

deleted100644 → 0
+0 −5
Original line number Diff line number Diff line
FROM nginx:alpine

COPY app app

ADD docker/nginx/default.conf /etc/nginx/conf.d/
 No newline at end of file
Loading