Skip to content

Commit

Permalink
Refactor Docker Compose and Nginx configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
flemming-pr committed Dec 26, 2023
1 parent 03837e6 commit 6ca2ecf
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 19 deletions.
17 changes: 0 additions & 17 deletions docker-compose.example.yml

This file was deleted.

10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: "3"

services:
frontend:
build:
context: .
dockerfile: "docker/frontend/Dockerfile"
restart: always
ports:
- "8080:8080"
1 change: 0 additions & 1 deletion docker/frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ RUN deno cache build.ts
ADD . .
RUN deno task build


# build nginx webserver
FROM nginx:alpine

Expand Down
2 changes: 1 addition & 1 deletion docker/frontend/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ http {
client_max_body_size 1m;

server {
listen 8080 default_server;
listen 80 default_server;
server_name _;

location / {
Expand Down

0 comments on commit 6ca2ecf

Please sign in to comment.