From 71da6aae4a1d35f3b2565c6403312d7171b172ab Mon Sep 17 00:00:00 2001 From: Jacob Farkas Date: Sun, 19 Jun 2022 21:53:23 -0700 Subject: [PATCH] Tweaks to the docker-compose file --- .local.env | 2 ++ docker-compose.yml | 14 ++++---------- 2 files changed, 6 insertions(+), 10 deletions(-) create mode 100644 .local.env diff --git a/.local.env b/.local.env new file mode 100644 index 0000000..7f001ff --- /dev/null +++ b/.local.env @@ -0,0 +1,2 @@ +SPRING83_FQDN=spring83.example.com +SPRING83_CONTACT_ADDR=spring83@example.com diff --git a/docker-compose.yml b/docker-compose.yml index 1fd04ee..e5a54a9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,14 +6,8 @@ services: dockerfile: Dockerfile target: serve network_mode: "host" - environment: - - SPRING83_FQDN=${SPRING83_FQDN} - - SPRING83_CONTACT_ADDR=${SPRING83_CONTACT_ADDR} - volumes: &default-logs-bind - - type: bind - source: ${SPRING83_CONTENT_DIR_HOST:?"Must define SPRING83_CONTENT_DIR_HOST as the absolute path to logs on the host."} - target: /content + env_file: + - .local.env + volumes: + - ./content:/content -volumes: - content: - external: true