This commit is contained in:
Sanj 2025-09-22 01:16:01 +05:30 committed by GitHub
commit 36442ad9f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 4 deletions

View file

@ -19,6 +19,7 @@ WORKDIR /home/seek-tune
COPY server/go.mod server/go.sum ./
RUN go mod download
RUN apt-get update && apt-get install -y ffmpeg
COPY server/ ./
ENV ENV=production
@ -30,4 +31,4 @@ RUN go build -o seek-tune
EXPOSE 5000
CMD [ "/home/seek-tune/seek-tune", "serve" ]
CMD [ "/home/seek-tune/seek-tune", "serve" ]

View file

@ -1,4 +1,4 @@
version: '3.1'
version: "3.1"
volumes:
seek-tune-db:
@ -6,7 +6,7 @@ volumes:
services:
seek-tune:
image: 'seek-tune'
image: "seek-tune"
restart: unless-stopped
ports:
- 8080:5000
@ -20,6 +20,8 @@ services:
DB_PORT: ${DB_PORT:-27017}
REACT_APP_BACKEND_URL: ${REACT_APP_BACKEND_URL:-http://localhost:8080}
SPOTIFY_CLIENT_ID: ${SPOTIFY_CLIENT_ID}
SPOTIFY_CLIENT_SECRET: ${SPOTIFY_CLIENT_SECRET}
build:
context: .
@ -28,4 +30,4 @@ services:
volumes:
- seek-tune-db:/home/seek-tune/db
- seek-tune-songs:/home/seek-tune/songs
- seek-tune-songs:/home/seek-tune/songs