1
0
Fork 0

add caddy, move timetracked to the main one

This commit is contained in:
Lukáš Kucharczyk 2023-01-20 16:23:46 +01:00
parent 2d014c515f
commit c0cc60031b
Signed by: lukas
SSH Key Fingerprint: SHA256:vMuSwvwAvcT6htVAioMP7rzzwMQNi3roESyhv+nAxeg
2 changed files with 37 additions and 1 deletions

2
.env
View File

@ -39,3 +39,5 @@ UPTIME_KUMA_EXTERNAL_PORT=3004
UPTIME_KUMA_INTERNAL_PORT=3001 UPTIME_KUMA_INTERNAL_PORT=3001
LOGSEQ_INTERNAL_PORT=80 LOGSEQ_INTERNAL_PORT=80
LOGSEQ_EXTERNAL_PORT=3005 LOGSEQ_EXTERNAL_PORT=3005
DENDRON_NOTES_EXTERNAL_PORT=2020
DENDRON_NOTES_INTERNAL_PORT=2020

View File

@ -16,3 +16,37 @@ services:
container_name: logseq container_name: logseq
ports: ports:
- "${LOGSEQ_EXTERNAL_PORT}:${LOGSEQ_INTERNAL_PORT}" - "${LOGSEQ_EXTERNAL_PORT}:${LOGSEQ_INTERNAL_PORT}"
caddy:
image: caddy
container_name: caddy
ports:
- "${TIMETRACKER_EXTERNAL_PORT}:${TIMETRACKER_INTERNAL_PORT}"
- "${DENDRON_NOTES_EXTERNAL_PORT}:${DENDRON_NOTES_INTERNAL_PORT}"
volumes:
- "${DOCKER_STORAGE_PATH}/caddy/data:/data"
- "${DOCKER_STORAGE_PATH}/caddy/config:/config"
- "${DOCKER_STORAGE_PATH}/caddy/Caddyfile:/etc/caddy/Caddyfile"
- "${DOCKER_STORAGE_PATH}/caddy/srv:/srv"
- "/www/notes:/srv/notes"
- "timetracker-static:/srv/timetracker"
depends_on:
- timetracker
restart: unless-stopped
timetracker:
image: ${REGISTRY_URL}/timetracker
container_name: timetracker
environment:
- TZ=${TZ}
- "CSRF_TRUSTED_ORIGINS=https://tracker.kucharczyk.xyz"
user: ${PUID}
volumes:
- "${DOCKER_STORAGE_PATH}/timetracker/db.sqlite3:/home/timetracker/app/src/web/db.sqlite3"
- "timetracker-static:/home/timetracker/app/static"
ports:
- "${TIMETRACKER_EXTERNAL_PORT}:${TIMETRACKER_INTERNAL_PORT}"
restart: unless-stopped
volumes:
timetracker-static: