31 lines
978 B
YAML
31 lines
978 B
YAML
# medium-proxy — standalone docker-compose
|
|
#
|
|
# Joins the existing Postiz Docker network so the proxy is reachable
|
|
# from the postiz container at a fixed IP (172.19.0.100).
|
|
#
|
|
# Prerequisites:
|
|
# 1. Run ./setup.sh to generate TLS certs (one-time)
|
|
# 2. Apply the Postiz docker-compose patch described in README.md
|
|
#
|
|
# Deploy: docker compose up -d --build
|
|
# Logs: docker compose logs -f
|
|
# Redeploy: docker compose up -d --build (after git pull)
|
|
|
|
services:
|
|
medium-proxy:
|
|
build: .
|
|
container_name: medium-proxy
|
|
restart: always
|
|
networks:
|
|
postiz-network:
|
|
ipv4_address: 172.19.0.100 # Fixed IP — must match extra_hosts in Postiz
|
|
volumes:
|
|
- ./certs:/certs:ro # TLS certs generated by setup.sh
|
|
|
|
networks:
|
|
# Attach to the Postiz network that Docker created under /root/postiz/
|
|
# The name follows Docker Compose's convention: <project>_<network>
|
|
postiz-network:
|
|
name: postiz_postiz-network
|
|
external: true
|