File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 1212
1313source .env
1414
15+ # Create temporary container to copy nginx config
16+ docker volume create project_nginx_conf
17+ docker container create --name nginx_tmp -v project_nginx_conf:/etc/nginx/conf.d alpine
18+ docker cp nginx/default.conf nginx_tmp:/etc/nginx/conf.d/
19+ docker rm nginx_tmp
20+
1521# Run Docker Compose without local volumes
1622docker-compose up --build --no-deps -d
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ services:
5959 ports :
6060 - 8089:80
6161 volumes :
62- - ./nginx/default.conf :/etc/nginx/conf.d/default.conf
62+ - nginx_conf :/etc/nginx/conf.d
6363 depends_on :
6464 - api
6565 - frontend
@@ -78,3 +78,4 @@ networks:
7878
7979volumes :
8080 postgres_data :
81+ nginx_conf :
You can’t perform that action at this time.
0 commit comments