tamako/docker-compose.yml
fawn 98fc415959
All checks were successful
ci/woodpecker/push/golint Pipeline was successful
ci/woodpecker/push/clippy Pipeline was successful
🔨 chore(docker): pin postgres image version 16
version `17` is not backwards compatiable
2024-10-19 20:58:27 +03:00

36 lines
1.5 KiB
YAML

services:
db:
image: postgres:16
restart: unless-stopped
environment:
POSTGRES_USER: user # change me
POSTGRES_PASSWORD: password # change me
POSTGRES_DB: tamako
ports:
- "5432"
volumes:
- tamakodb:/var/lib/postgresql/data
networks:
- tamako
web:
image: fawni/tamako # or ghcr.io/fawni/tamako or codeberg.org/fawn/tamako
# build: . # uncomment to build the image locally instead of pulling from a registry
restart: unless-stopped
environment:
TAMAKO_HOST: 0.0.0.0 # the host to run the server on.
TAMAKO_PORT: "8715" # the port to run the server on. make sure it's not already in use.
TAMAKO_SECRET: "" # IMPORTANT: the secret key used for authentication. think of it like a master password.
DATABASE_URL: postgresql://user:password@db:5432/tamako # the database url. for docker compose, change `user` and `password` to the variables set in `services.db.environment` above.
WEBHOOK_URL: "" # (optional) the discord webhook url. this will be used to send whispers (private and public) to a discord channel.
# TAMAKO_USER_NAME = "sofia" # (optional) defaults to "tamako". used in the web fronted header.
# TAMAKO_USER_DESCRIPTION = "stupidest kibty" # (optional) defaults to "Cozy anonymous whispers 🐞". used in the web fronted header.
ports:
- 8715:8715
depends_on:
- db
networks:
- tamako
volumes:
tamakodb:
networks:
tamako: