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