feat: add Docker support

This commit is contained in:
2026-01-21 04:39:19 +01:00
parent f57a2010d2
commit 3938fb0920
6 changed files with 38 additions and 17 deletions

View File

@@ -6,16 +6,18 @@
name: kittyurl
services:
# kittyfe:
# container_name: frontend
# image: gitea.7o7.cx/kittyteam/kittyfe:${FRONTEND_VERSION:-latest}
# env_file:
# - .env
# ports:
# - ${FRONTEND_PORT}:6568
# depends_on:
# - kittybe
# restart: unless-stopped
kittyfe:
container_name: frontend
image: gitea.7o7.cx/kittyteam/kittyfe:${FRONTEND_VERSION:-latest}
env_file:
- .env
ports:
- ${FRONTEND_PORT}:6568
depends_on:
- kittybe
volumes:
- ${CURRENT_DIRECTORY_ABSOLUTE_PATH}.env:/.env
restart: unless-stopped
kittybe:
container_name: backend
@@ -26,6 +28,11 @@ services:
- ${BACKEND_PORT}:6567
depends_on:
- postgres
volumes:
# Change me if you want to store wordlist somewhere else.
# Remember, Docker requires you to point out absolute path when mounting
# only a single file.
- ${CURRENT_DIRECTORY_ABSOLUTE_PATH}${PATH_TO_WORDLIST}:/app/src/tools/wordlist.ts
restart: unless-stopped
postgres:
@@ -38,4 +45,6 @@ services:
POSTGRES_USER: ${PG_USER}
POSTGRES_PASSWORD: ${PG_PASS}
POSTGRES_DB: ${PG_DB}
volumes:
- ${DB_DATA_LOCATION}:/var/lib/postgresql/data
shm_size: 128mb