Skip to content

Commit 0068f86

Browse files
committed
fix(compose): fix docker compose issue with nuxt app and nginx
1 parent 09da585 commit 0068f86

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ notes
88
cdk.out
99
.raspberrypi.env
1010
cdk.context.json
11+
backend/celerybeat-schedule-*
1112

1213
# Redis .rdb files
1314
*.rdb

docker-compose.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@ services:
99
- "80:80"
1010
depends_on:
1111
- backend
12+
- nuxt
1213
volumes:
1314
- ./nginx/dev/dev.conf:/etc/nginx/nginx.conf:ro
1415
networks:
1516
- main
1617

17-
nuxt-app:
18-
container_name: nuxt-app
18+
nuxt:
19+
container_name: nuxt
1920
build:
2021
context: ./nuxt-app
2122
dockerfile: ./Dockerfile
@@ -32,6 +33,8 @@ services:
3233
- node_modules:/src/node_modules
3334
# TODO: fix this.. uncomment this when using prod
3435
# - /src/.output
36+
networks:
37+
- main
3538

3639
postgres:
3740
container_name: postgres

nginx/dev/dev.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ http {
1414
}
1515

1616
upstream frontend {
17-
server host.docker.internal:8081;
17+
server nuxt:3000;
1818
}
1919

2020
server {

0 commit comments

Comments
 (0)