update nginx compose
This commit is contained in:
@@ -1,8 +1,6 @@
|
|||||||
POSTGRES_USER=f0ckm
|
POSTGRES_USER=f0ckm
|
||||||
POSTGRES_DB=f0ckm
|
POSTGRES_DB=f0ckm
|
||||||
POSTGRES_PASSWORD=f0ckm
|
POSTGRES_PASSWORD=f0ckm
|
||||||
|
#VIRTUAL_HOST=example.net
|
||||||
# --- Nginx & Let's Encrypt Configuration (Optional) ---
|
#LETSENCRYPT_HOST=example.net
|
||||||
# VIRTUAL_HOST=yourdomain.com
|
#LETSENCRYPT_EMAIL=foobar@example.net
|
||||||
# LETSENCRYPT_HOST=yourdomain.com
|
|
||||||
# LETSENCRYPT_EMAIL=your-email@example.com
|
|
||||||
|
|||||||
11
config/nginx/f0ck.conf
Normal file
11
config/nginx/f0ck.conf
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
client_max_body_size 100M;
|
||||||
|
client_body_timeout 120s;
|
||||||
|
client_header_timeout 120s;
|
||||||
|
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection "upgrade";
|
||||||
|
|
||||||
|
proxy_connect_timeout 120s;
|
||||||
|
proxy_send_timeout 120s;
|
||||||
|
proxy_read_timeout 120s;
|
||||||
@@ -1,4 +1,11 @@
|
|||||||
services:
|
services:
|
||||||
|
f0ckm:
|
||||||
|
environment:
|
||||||
|
- VIRTUAL_HOST=${VIRTUAL_HOST:-localhost}
|
||||||
|
- VIRTUAL_PORT=1337
|
||||||
|
- LETSENCRYPT_HOST=${LETSENCRYPT_HOST:-}
|
||||||
|
- LETSENCRYPT_EMAIL=${LETSENCRYPT_EMAIL:-}
|
||||||
|
|
||||||
nginx-proxy:
|
nginx-proxy:
|
||||||
image: nginxproxy/nginx-proxy:latest
|
image: nginxproxy/nginx-proxy:latest
|
||||||
container_name: f0ckm-nginx-proxy
|
container_name: f0ckm-nginx-proxy
|
||||||
@@ -10,6 +17,7 @@ services:
|
|||||||
- certs:/etc/nginx/certs:rw
|
- certs:/etc/nginx/certs:rw
|
||||||
- vhost:/etc/nginx/vhost.d:rw
|
- vhost:/etc/nginx/vhost.d:rw
|
||||||
- html:/usr/share/nginx/html:rw
|
- html:/usr/share/nginx/html:rw
|
||||||
|
- ./config/nginx/f0ck.conf:/etc/nginx/conf.d/f0ckm.conf:ro
|
||||||
networks:
|
networks:
|
||||||
- f0ckm-net
|
- f0ckm-net
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|||||||
@@ -35,10 +35,6 @@ services:
|
|||||||
|
|
||||||
environment:
|
environment:
|
||||||
- GIT_HASH=${f0ckm_TAG:-unknown}
|
- GIT_HASH=${f0ckm_TAG:-unknown}
|
||||||
- VIRTUAL_HOST=${VIRTUAL_HOST:-localhost}
|
|
||||||
- VIRTUAL_PORT=1337
|
|
||||||
- LETSENCRYPT_HOST=${LETSENCRYPT_HOST:-}
|
|
||||||
- LETSENCRYPT_EMAIL=${LETSENCRYPT_EMAIL:-}
|
|
||||||
ports:
|
ports:
|
||||||
- "1337:1337"
|
- "1337:1337"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|||||||
Reference in New Issue
Block a user