Skip to content

Commit b99c386

Browse files
committed
trying to fix mounting nginx conf.d issues
1 parent dcb5582 commit b99c386

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

build_github.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,11 @@ fi
1212

1313
source .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
1622
docker-compose up --build --no-deps -d

docker-compose.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

7979
volumes:
8080
postgres_data:
81+
nginx_conf:

0 commit comments

Comments
 (0)