mirror of
https://github.com/fromchat-messenger/web.git
synced 2026-09-22 19:15:08 +03:00
Make ports 80 and 443 compatible with UFW
This commit is contained in:
@@ -167,8 +167,8 @@ services:
|
||||
- production
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
- "127.0.0.1:8080:8080"
|
||||
- "127.0.0.1:8443:8443"
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
volumes:
|
||||
@@ -179,6 +179,22 @@ services:
|
||||
networks:
|
||||
- public
|
||||
|
||||
haproxy:
|
||||
image: haproxy:latest
|
||||
profiles:
|
||||
- production
|
||||
restart: unless-stopped
|
||||
network_mode: host
|
||||
# Image defaults to USER haproxy (non-root); that user cannot bind 80/443 on host.
|
||||
# Rootful Docker does not change that — only the container user does.
|
||||
user: "0:0"
|
||||
cap_add:
|
||||
- NET_BIND_SERVICE
|
||||
depends_on:
|
||||
- caddy
|
||||
volumes:
|
||||
- ./haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro
|
||||
|
||||
postgres:
|
||||
build:
|
||||
context: .
|
||||
|
||||
Reference in New Issue
Block a user