uses env vars in compose.yml
This commit is contained in:
+24
-12
@@ -1,12 +1,12 @@
|
|||||||
services:
|
services:
|
||||||
gemini:
|
gemini:
|
||||||
image: git.joeac.net/joeac/joeac.net-gemini
|
image: git.joeac.net/joeac/${CONTAINER_PREFIX}joeac.net-gemini
|
||||||
container_name: joeac.net-gemini
|
container_name: joeac.net-gemini
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: gemini.Dockerfile
|
dockerfile: gemini.Dockerfile
|
||||||
ports:
|
ports:
|
||||||
- "1965:1965"
|
- "${GEMINI_PORT}:1965"
|
||||||
|
|
||||||
http:
|
http:
|
||||||
image: git.joeac.net/joeac/joeac.net-http
|
image: git.joeac.net/joeac/joeac.net-http
|
||||||
@@ -14,10 +14,20 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: http.Dockerfile
|
dockerfile: http.Dockerfile
|
||||||
env_file:
|
environment:
|
||||||
- .env
|
MAX_DAILY_EMAILS: ${MAX_DAILY_EMAILS}
|
||||||
|
CONTACT_MAILBOX: ${CONTACT_MAILBOX}
|
||||||
|
CONTACT_MAILBOX_NAME: ${CONTACT_MAILBOX_NAME}
|
||||||
|
LOCAL_SMTP_FROM: ${LOCAL_SMTP_FROM}
|
||||||
|
LOCAL_SMTP_FROM_NAME: ${LOCAL_SMTP_FROM_NAME}
|
||||||
|
LOCAL_SMTP_HOST: ${LOCAL_SMTP_HOST}
|
||||||
|
LOCAL_SMTP_PORT: ${LOCAL_SMTP_PORT}
|
||||||
|
LOCAL_SMTP_USER: ${LOCAL_SMTP_USER}
|
||||||
|
LOCAL_SMTP_PASSWORD: ${LOCAL_SMTP_PASSWORD}
|
||||||
|
DB_SCHEME: ${DB_SCHEME}
|
||||||
|
DB_PATH: ${DB_PATH}
|
||||||
ports:
|
ports:
|
||||||
- "8080:80"
|
- "${HTTP_PORT}:80"
|
||||||
|
|
||||||
etherpad:
|
etherpad:
|
||||||
image: git.joeac.net/joeac/joeac.net-etherpad
|
image: git.joeac.net/joeac/joeac.net-etherpad
|
||||||
@@ -44,13 +54,15 @@ services:
|
|||||||
context: .
|
context: .
|
||||||
dockerfile: smtp.Dockerfile
|
dockerfile: smtp.Dockerfile
|
||||||
args:
|
args:
|
||||||
SMTP_PORT: 2500
|
SMTP_PORT: ${LOCAL_SMTP_PORT}
|
||||||
env_file:
|
|
||||||
- .env
|
|
||||||
environment:
|
environment:
|
||||||
SMTP_PORT: 2500
|
LOCAL_SMTP_ENVELOPE_FROM: ${LOCAL_SMTP_ENVELOPE_FROM}
|
||||||
SMTP_USER: smtp
|
REMOTE_SMTP_HOST: ${REMOTE_SMTP_HOST}
|
||||||
SMTP_PASSWORD: smtp
|
REMOTE_SMTP_PORT: ${REMOTE_SMTP_PORT}
|
||||||
|
REMOTE_SMTP_USER: ${REMOTE_SMTP_USER}
|
||||||
|
SMTP_PORT: ${LOCAL_SMTP_PORT}
|
||||||
|
SMTP_USER: ${LOCAL_SMTP_USER}
|
||||||
|
SMTP_PASSWORD: ${LOCAL_SMTP_PASSWORD}
|
||||||
REMOTE_SMTP_PASSWORD_FILE: /run/secrets/remote_smtp_password
|
REMOTE_SMTP_PASSWORD_FILE: /run/secrets/remote_smtp_password
|
||||||
secrets:
|
secrets:
|
||||||
- remote_smtp_password
|
- remote_smtp_password
|
||||||
@@ -64,7 +76,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./vaultwarden/vw-data/:/data/
|
- ./vaultwarden/vw-data/:/data/
|
||||||
ports:
|
ports:
|
||||||
- "9000:80"
|
- "${VAULTWARDEN_PORT}:80"
|
||||||
|
|
||||||
secrets:
|
secrets:
|
||||||
remote_smtp_password:
|
remote_smtp_password:
|
||||||
|
|||||||
+16
@@ -1,3 +1,7 @@
|
|||||||
|
# A prefix for remote container names
|
||||||
|
# If you're running on ARM 32-bit CPU architecture, use 'armv7/', otherwise keep blank
|
||||||
|
CONTAINER_PREFIX=
|
||||||
|
|
||||||
# The hostname to use for the local SMTP server
|
# The hostname to use for the local SMTP server
|
||||||
LOCAL_SMTP_HOST=
|
LOCAL_SMTP_HOST=
|
||||||
|
|
||||||
@@ -48,3 +52,15 @@ DB_SCHEME=
|
|||||||
|
|
||||||
# The path part of the URI to the website database
|
# The path part of the URI to the website database
|
||||||
DB_PATH=
|
DB_PATH=
|
||||||
|
|
||||||
|
# The Node.JS environment for the Etherpad instance (production, development)
|
||||||
|
ETHERPAD_NODE_ENV=production
|
||||||
|
|
||||||
|
# The admin password for the Etherpad instance
|
||||||
|
ETHERPAD_ADMIN_PASSWORD=
|
||||||
|
|
||||||
|
# The ports on which to run apps
|
||||||
|
ETHERPAD_PORT=9001
|
||||||
|
HTTP_PORT=8080
|
||||||
|
GEMINI_PORT=1965
|
||||||
|
VAULTWARDEN_PORT=9000
|
||||||
|
|||||||
Reference in New Issue
Block a user