mirror of
https://github.com/R0m1k3/Socialflow.git
synced 2026-10-11 17:26:45 +02:00
fix: génération automatique de la clé de chiffrement au lancement Docker
This commit is contained in:
1 parent
4b779838b3
commit
4f8bab176a
4 files changed
+114
-22
No files matched your search
+6
-2
@@ -19,7 +19,7 @@ services:
|
||||
- internal
|
||||
- nginx_default
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U ${PGUSER:-socialflow}"]
|
||||
test: [ "CMD-SHELL", "pg_isready -U ${PGUSER:-socialflow}" ]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
@@ -44,17 +44,21 @@ services:
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
volumes:
|
||||
- encryption_key:/app/.encryption-key-data
|
||||
command: sh -c "npx drizzle-kit push --force && npm run start"
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
driver: local
|
||||
encryption_key:
|
||||
driver: local
|
||||
|
||||
networks:
|
||||
# Réseau interne pour la communication DB <-> App
|
||||
internal:
|
||||
driver: bridge
|
||||
|
||||
|
||||
# Réseau externe pour nginx reverse proxy
|
||||
nginx_default:
|
||||
external: true
|
||||
Reference in new issue
Block a user