Build the static Next.js export in a reproducible container and expose it through the existing Caddy network and upstream service name.
16 lines
280 B
YAML
16 lines
280 B
YAML
services:
|
|
static-site:
|
|
image: amiirkhl-portfolio:latest
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: static-site
|
|
restart: unless-stopped
|
|
networks:
|
|
- caddy_proxy
|
|
|
|
networks:
|
|
caddy_proxy:
|
|
external: true
|
|
name: caddy_proxy
|