own network
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
# docker compose up -d --build
|
||||
#
|
||||
# The host already runs Caddy as a reverse proxy. Caddy forwards requests
|
||||
# to host.docker.internal:3000 (or localhost:3000 from the host side).
|
||||
# On Linux, if host.docker.internal does not resolve inside the container,
|
||||
# uncomment the extra_hosts line below so Caddy can reference it.
|
||||
# The host runs Caddy as a reverse proxy in its own compose project.
|
||||
# Caddy forwards requests for email-cc.com to this container by name:
|
||||
# reverse_proxy email-cc-web:3000
|
||||
# For that to resolve, Caddy and this container must share a Docker network.
|
||||
# The network "email-cc" is created by the Caddy compose project and joined
|
||||
# here as external.
|
||||
#
|
||||
# Prerequisites: a .env file in the project directory with:
|
||||
# SES_SMTP_USER=
|
||||
@@ -13,8 +15,14 @@
|
||||
services:
|
||||
web:
|
||||
build: .
|
||||
ports:
|
||||
- "3000:3000"
|
||||
container_name: email-cc-web
|
||||
env_file:
|
||||
- .env
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- email-cc
|
||||
|
||||
networks:
|
||||
email-cc:
|
||||
external: true
|
||||
name: email-cc
|
||||
Reference in New Issue
Block a user