dpl/scripts/hn/gateway/gateway.compose.yml

54 lines
1.7 KiB
YAML

name: hn-sgw
services:
gateway:
image: sha256:d8807a5b2442bc25ce4fbc1312354b9dcbb0f538d75181ef735f4ea980760e70
pull_policy: never
container_name: hn-subscribe-gateway
restart: unless-stopped
mem_limit: 160m
cpus: 0.5
ports:
- "127.0.0.1:28080:80"
- "127.0.0.1:28443:443"
environment:
V2B_BACKEND: https://hardnerd.net
V2B_HOST: hardnerd.net
REAL_IP_HEADER: X-Real-IP
AXISNOW_TRUSTED_IPS: 172.28.32.1
volumes:
- config:/etc/nginx/subscribe
- logs:/var/log/subscribe
- /etc/hn-gateway-letsencrypt:/etc/hn-gateway-letsencrypt:ro
- /var/lib/hn-sgw/ssl:/etc/nginx/ssl:ro
- ./gateway-nginx.conf:/etc/nginx/templates-src/nginx.conf:ro
- ./gateway-protect.conf:/etc/nginx/templates-src/subscribe_protect.conf.template:ro
networks: [hn]
logging: {driver: json-file, options: {max-size: "5m", max-file: "2"}}
admin:
image: sha256:31ff8ea3e8f958a835edbd1579709017da75b742ff3a5984ea59d12ea0775577
pull_policy: never
container_name: hn-subscribe-admin
restart: unless-stopped
mem_limit: 128m
cpus: 0.5
ports:
- "127.0.0.1:26444:64444"
env_file:
- path: /var/lib/hn-sgw/admin.env
format: raw
volumes:
- config:/etc/nginx/subscribe
- logs:/var/log/subscribe
- /etc/hn-gateway-letsencrypt:/etc/hn-gateway-letsencrypt:ro
- ./gateway-admin.conf:/etc/nginx/nginx.conf:ro
networks: [hn]
logging: {driver: json-file, options: {max-size: "5m", max-file: "2"}}
volumes:
config: {name: hn_sgw_config}
logs: {name: hn_sgw_logs}
networks:
hn:
name: hn_sgw_net
ipam:
config: [{subnet: 172.28.32.0/24}]