prepare karin

This commit is contained in:
nora 2023-08-26 23:26:21 +02:00
parent 08e9aba6cb
commit 04abeec667
2 changed files with 15 additions and 5 deletions

View file

@ -10,6 +10,7 @@ on:
- widetom - widetom
- cargo-bisect-rustc-service - cargo-bisect-rustc-service
- killua-bot - killua-bot
- discord-court-bot
- hugo-chat - hugo-chat
jobs: jobs:

View file

@ -32,8 +32,7 @@ services:
container_name: hugo-chat-db container_name: hugo-chat-db
image: "postgres:latest" image: "postgres:latest"
restart: always restart: always
ports: # no ports bound, accessed via the internal network
- "5432:5432"
environment: environment:
POSTGRES_PASSWORD: "${HUGO_CHAT_DB_PASSWORD}" POSTGRES_PASSWORD: "${HUGO_CHAT_DB_PASSWORD}"
networks: networks:
@ -54,8 +53,18 @@ services:
restart: always restart: always
ports: ports:
- "5002:80" - "5002:80"
karin_bot_db:
# TODO: create an internal network and move caddy there as well. container_name: karin-bot-db
image: "mongo:latest"
restart: always
env_file:
- "/apps/karin-bot/.env"
networks:
- internal
deploy:
resources:
limits:
cpus: "0.5"
memory: 500M
networks: networks:
internal: internal: