fix: update docker compose and dockerfile to be work out of the box

This commit is contained in:
Tine 2024-05-29 21:28:37 +02:00
parent e5dd6e2cd1
commit 1935cd9db3
Signed by: mentos1386
SSH key fingerprint: SHA256:MNtTsLbihYaWF8j1fkOHfkKNlnN1JQfxEU/rBU8nCGw
5 changed files with 6 additions and 3 deletions

View file

@ -30,6 +30,10 @@ EXPOSE 8223
EXPOSE 7233 EXPOSE 7233
# Volume to persist sqlite databases # Volume to persist sqlite databases
# as well as the keyvalue database.
ENV SQLITE_DATABASE_PATH=/data/zdravko.db
ENV TEMPORAL_DATABASE_PATH=/data/temporal.db
ENV KEYVALUE_DATABASE_PATH=/data/keyvalue.db
VOLUME /data VOLUME /data
ENV DATABASE_PATH=/data/zdravko.db ENV DATABASE_PATH=/data/zdravko.db

1
deploy/.dockerignore Normal file
View file

@ -0,0 +1 @@
deploy/

View file

@ -1,5 +1,3 @@
version: '3.8'
volumes: volumes:
server_data: server_data:
temporal_data: temporal_data:

View file

@ -3,7 +3,7 @@ set shell := ["devbox", "run"]
# Load dotenv # Load dotenv
set dotenv-load set dotenv-load
import 'deploy.just' import 'deploy/Justfile'
# Load public and private keys # Load public and private keys
export JWT_PRIVATE_KEY := `cat jwt.private.pem || echo ""` export JWT_PRIVATE_KEY := `cat jwt.private.pem || echo ""`