Pfad in zur env datei in jedem Service angegeben

This commit is contained in:
bmen 2023-02-20 17:48:28 +01:00
parent f7eb11eda5
commit 3809d38476
1 changed files with 2 additions and 4 deletions

View File

@ -10,10 +10,6 @@ networks:
services: services:
base:
env_file:
- /home/docker/env/hedgedoc.env
db: db:
# Don't upgrade PostgreSQL by simply changing the version number # Don't upgrade PostgreSQL by simply changing the version number
# You need to migrate the Database to the new PostgreSQL version # You need to migrate the Database to the new PostgreSQL version
@ -25,6 +21,7 @@ services:
#tmpfs: #tmpfs:
# - /run/postgresql:size=512K # - /run/postgresql:size=512K
# - /tmp:size=256K # - /tmp:size=256K
env_file: /home/docker/env/hedgedoc.env
environment: environment:
- POSTGRES_USER=${POSTGRES_USER} - POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD} - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
@ -45,6 +42,7 @@ services:
# - "HEDGEDOC_REPOSITORY=https://github.com/hedgedoc/hedgedoc.git" # - "HEDGEDOC_REPOSITORY=https://github.com/hedgedoc/hedgedoc.git"
image: quay.io/hedgedoc/hedgedoc:1.9.7 image: quay.io/hedgedoc/hedgedoc:1.9.7
container_name: hedgedoc container_name: hedgedoc
env_file: /home/docker/env/hedgedoc.env
#mem_limit: 256mb # version 2 only #mem_limit: 256mb # version 2 only
#memswap_limit: 512mb # version 2 only #memswap_limit: 512mb # version 2 only
#read_only: true # not supported in swarm mode, enable along with tmpfs #read_only: true # not supported in swarm mode, enable along with tmpfs