Skip to content

Commit 85a8351

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

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
package-manager: npm
1717
working-directory: test
1818
- cypress/run-tests:
19-
cypress-command: npx wait-on@latest http://localhost:8089 && cd test && npx cypress run
19+
cypress-command: npx cypress run
2020
working-directory: test
2121
workflows:
2222
use-my-orb:

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)