72 lines
2.0 KiB
YAML
72 lines
2.0 KiB
YAML
---
|
|
version: "3.11"
|
|
|
|
services:
|
|
app:
|
|
image: luuul/4get:1.0.21
|
|
environment:
|
|
- FOURGET_PROTO=http
|
|
- DISALLOWED_SSL=TLS_AES_256_GCM_SHA384
|
|
- FILTERED_HEADER_KEYS=x-forwarded-for,x-cluster-client-ip,x-client-ip,x-real-ip,client-ip,real-ip,forwarded-for,forwarded-for-ip,forwarded,proxy-connection,remote-addr,via
|
|
|
|
networks:
|
|
- proxy
|
|
deploy:
|
|
restart_policy:
|
|
condition: on-failure
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80"
|
|
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)"
|
|
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
|
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
|
- "coop-cloud.${STACK_NAME}.version="
|
|
volumes:
|
|
- banners:/var/www/html/4get/banner/
|
|
configs:
|
|
- source: robots_txt
|
|
target: /robots.txt
|
|
- source: about_html
|
|
target: /var/www/html/4get/template/about.html
|
|
- source: home_html
|
|
target: /var/www/html/4get/template/home.html
|
|
- source: api_txt
|
|
target: /var/www/html/4get/api.txt
|
|
- source: header_html
|
|
target: /var/www/html/4get/template/header.html
|
|
healthcheck:
|
|
test: [ "CMD", "curl", "-f", "http://localhost" ]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 10
|
|
start_period: 1m
|
|
|
|
configs:
|
|
robots_txt:
|
|
name: ${STACK_NAME}_robots_txt${ROBOTS_TXT_VERSION}
|
|
file: robots.txt.tmpl
|
|
template_driver: golang
|
|
about_html:
|
|
name: ${STACK_NAME}_about_html_${ABOUT_HTML_VERSION}
|
|
file: about.html.tmpl
|
|
template_driver: golang
|
|
home_html:
|
|
name: ${STACK_NAME}_home_html_${HOME_HTML_VERSION}
|
|
file: home.html.tmpl
|
|
template_driver: golang
|
|
api_txt:
|
|
name: ${STACK_NAME}_api_txt_${API_TXT_VERSION}
|
|
file: api.txt.tmpl
|
|
template_driver: golang
|
|
header_html:
|
|
name: ${STACK_NAME}_header_html_${HEADER_HTML_VERSION}
|
|
file: header.html.tmpl
|
|
template_driver: golang
|
|
|
|
volumes:
|
|
banners:
|
|
|
|
networks:
|
|
proxy:
|
|
external: true
|