let's specify env files

This commit is contained in:
Mael G. 2024-10-19 17:10:49 +02:00
parent c33412d4bd
commit 5d6b1d65c9

View file

@ -1,10 +1,8 @@
services: services:
db: db:
image: postgres:14 image: postgres:14
environment: env_file:
POSTGRES_DB: [[WIKIJS_DB_NAME]] - .env
POSTGRES_PASSWORD: [[WIKIJS_DB_PASSWORD]]
POSTGRES_USER: [[WIKIJS_DB_USER]]
logging: logging:
driver: "none" driver: "none"
restart: unless-stopped restart: unless-stopped
@ -19,9 +17,8 @@ services:
DB_TYPE: postgres DB_TYPE: postgres
DB_HOST: db DB_HOST: db
DB_PORT: 5432 DB_PORT: 5432
DB_USER: [[WIKIJS_DB_USER]] env_file:
DB_PASS: [[WIKIJS_DB_PASSWORD]] - .env
DB_NAME: [[WIKIJS_DB_NAME]]
restart: unless-stopped restart: unless-stopped
ports: ports:
- "8082:3000" - "8082:3000"