1
0
Fork 0

fix: weird docker compose hacks

This commit is contained in:
Dariusz Niemczyk 2024-01-13 23:30:50 +01:00
parent 142e38ad95
commit c3c80d650c
No known key found for this signature in database
3 changed files with 11 additions and 2 deletions

View File

@ -3,6 +3,6 @@ version: "3"
services: services:
db: db:
volumes: volumes:
- /var/spejstore-data:/var/lib/postgresql/data - /var/spejstore-data-new:/var/lib/postgresql/data
web: web:
image: registry.k0.hswaw.net/palid/spejstore:1689856372 build: .

View File

@ -26,6 +26,11 @@ services:
depends_on: depends_on:
db: db:
condition: service_healthy condition: service_healthy
env_file:
- path: .env
required: true
- path: ./spejstore-dev.env
required: false
environment: environment:
- SPEJSTORE_CLIENT_ID - SPEJSTORE_CLIENT_ID
- SPEJSTORE_SECRET - SPEJSTORE_SECRET

View File

@ -1,3 +1,7 @@
SPEJSTORE_CLIENT_ID=inventory SPEJSTORE_CLIENT_ID=inventory
SPEJSTORE_SECRET=secret SPEJSTORE_SECRET=secret
SPEJSTORE_ALLOWED_HOSTS=localhost,127.0.0.1 SPEJSTORE_ALLOWED_HOSTS=localhost,127.0.0.1
SPEJSTORE_DB_NAME=postgres
SPEJSTORE_DB_PASSWORD=postgres
SPEJSTORE_DB_USER=postgres
SPEJSTORE_DB_HOST=db