Skip to content

Commit

Permalink
added deployment configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodinglab committed Aug 14, 2021
1 parent da14f52 commit 903c92e
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
13 changes: 13 additions & 0 deletions config/Caddyfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
guess-the-output.thecodinglab.dev {
tls internal

reverse_proxy /socket.io/* backend:3000 {
header_up Host {host}
header_up X-Real-IP {remote}
}

log {
output stdout
level DEBUG
}
}
16 changes: 16 additions & 0 deletions config/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: '3.8'

services:
caddy:
container_name: caddy
image: caddy:2
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
ports:
- 80:80
- 443:443

backend:
container_name: backend
image: ghcr.io/thecodinglab/guess-the-output/backend:latest
restart: unless-stopped

0 comments on commit 903c92e

Please sign in to comment.