Skip to content

Commit

Permalink
some production updates
Browse files Browse the repository at this point in the history
  • Loading branch information
kern committed Dec 29, 2024
1 parent bf925aa commit 1802f1c
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 5 deletions.
28 changes: 28 additions & 0 deletions docker-compose.production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
services:
redis:
image: redis:latest
ports:
- 6379:6379
networks:
- filepizza
volumes:
- redis_data:/data
filepizza:
build: .
image: kern/filepizza:latest
ports:
- 80:80
environment:
- PORT=80
- REDIS_URL=redis://redis:6379
networks:
- filepizza
depends_on:
- redis

networks:
filepizza:
driver: bridge

volumes:
redis_data:
8 changes: 6 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
version: '3'
services:
redis:
image: redis:latest
ports:
- 6379:6379
networks:
- filepizza
volumes:
- redis_data:/data
filepizza:
build: .
image: kern/filepizza:master
image: kern/filepizza:latest
ports:
- 8080:8080
environment:
Expand All @@ -22,3 +23,6 @@ services:
networks:
filepizza:
driver: bridge

volumes:
redis_data:
4 changes: 1 addition & 3 deletions src/hooks/useUploaderChannel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ function generateURL(slug: string): string {
window.location.protocol +
'//' +
window.location.hostname +
(['80', '443'].includes(window.location.port)
? ''
: ':' + window.location.port)
(window.location.port ? ':' + window.location.port : '')
return `${hostPrefix}/download/${slug}`
}

Expand Down

0 comments on commit 1802f1c

Please sign in to comment.