Files
trailbase/examples/blog/docker-compose.yml
Sebastian Jeltsch bdb3735840 Squash all commits for a fresh start.
This is only to avoid accidentally leaking any secrets from early development especially in the light of short-sha attacks.
2024-10-30 23:38:56 +01:00

34 lines
902 B
YAML

services:
blog:
# NOTE: We have to build relative to root to have a build context that
# includes both: the trailbase server source and the demo wepapp sources.
# build: ../..
# TODO: Build from "." once the Dockerfile can pull a base image from
# dockerhub. We still need an example Dockerfile to build the UI.
build:
context: ../..
dockerfile: examples/blog/Dockerfile
restart: unless-stopped
environment:
TRAIL_INITIAL_PASSWORD: secret
ADDRESS: 0.0.0.0:4000
PUBLIC_DIR: ./public
DATA_DIR: ./traildepot
volumes:
- ./traildepot:/app/traildepot
caddy:
image: caddy:2.8-alpine
restart: unless-stopped
cap_add:
- NET_ADMIN
ports:
- "80:80"
- "443:443"
- "443:443/udp"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- ./caddy/data:/data
- ./caddy/config:/config