diff --git a/Caddyfile b/Caddyfile new file mode 100644 index 0000000..2a59bab --- /dev/null +++ b/Caddyfile @@ -0,0 +1,4 @@ +racingla.ewi.tudelft.nl { + header X-Clacks-Overhead "GNU Terry Pratchett" + reverse_proxy web:3000 +} diff --git a/compose.yaml b/compose.yaml new file mode 100644 index 0000000..4a0080f --- /dev/null +++ b/compose.yaml @@ -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: diff --git a/db/docker-compose.yml b/db/compose.yaml similarity index 100% rename from db/docker-compose.yml rename to db/compose.yaml