Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

Commit

Permalink
chore: add user root in docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
amber committed Sep 30, 2024
1 parent 406bcd7 commit e480b48
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/build-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ jobs:
- name: Build and push frontend
uses: docker/build-push-action@v6
with:
build-args: |
NEXT_PUBLIC_API_BASE_URL=${{ secrets.NEXT_PUBLIC_API_BASE_URL }}
context: ./frontend
push: true
tags: z1yoon/nus-secondhand-market-frontend:latest
Expand Down
4 changes: 3 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ services:
context: frontend
dockerfile: Dockerfile
args:
NEXT_PUBLIC_API_BASE_URL: http://backend:8081/api
NEXT_PUBLIC_API_BASE_URL: ${NEXT_PUBLIC_API_BASE_URL}
ports:
- "80:3000"
restart: always
user: root

backend:
image: z1yoon/nus-secondhand-market-backend:latest
Expand All @@ -25,6 +26,7 @@ services:

postgres:
image: postgres:latest
user: root
ports:
- "5432:5432"
environment:
Expand Down

0 comments on commit e480b48

Please sign in to comment.