hugochat volume

This commit is contained in:
nora 2023-08-28 15:22:22 +02:00
parent 71949b7ea0
commit b849b19250
2 changed files with 11 additions and 1 deletions

View file

@ -84,6 +84,14 @@
- db.env
- server.env
#####
# APP: hugo-chat, /apps/hugo-chat
#####
- name: Create /apps/hugo-chat
ansible.builtin.file:
path: /apps/hugo-chat
state: directory
mode: "u=rwx,g=rx,o=rx"
#####
# APP: bisect-rustc-servce, /apps/bisect-rustc-service
#####
- name: Create /apps/bisect-rustc-service

View file

@ -43,9 +43,11 @@ services:
container_name: hugo-chat-db
image: "postgres:latest"
restart: always
# no ports bound, accessed via the hugo-chat network
volumes:
- "/apps/hugo-chat/data:/var/lib/postgresql/data"
environment:
POSTGRES_PASSWORD: "${HUGO_CHAT_DB_PASSWORD}"
PGDATA: "/var/lib/postgresql/data/pgdata"
networks:
- hugo-chat
hugo_chat_server: