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

Commit

Permalink
Add prod compose config
Browse files Browse the repository at this point in the history
  • Loading branch information
juliavdkris committed Jul 9, 2024
1 parent 6b18e62 commit 3b32cd3
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Caddyfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
racingla.ewi.tudelft.nl {
header X-Clacks-Overhead "GNU Terry Pratchett"
reverse_proxy web:3000
}
33 changes: 33 additions & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: graph


services:
caddy:
image: docker.io/caddy:2.8-alpine
ports:
- 80:80
- 443:443
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- caddy_data:/data
- caddy_config:/config

web:
image: ghcr.io/prime-tu-delft/graph
environment:
DATABASE_URL: ${DATABASE_URL}

db:
image: postgres:16
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}


volumes:
postgres_data:
caddy_data:
caddy_config:
File renamed without changes.

0 comments on commit 3b32cd3

Please sign in to comment.