-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
41 lines (35 loc) · 1.09 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
version: "3.7"
x-logging: &loki-logging
driver: json-file
options:
tag: "{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}"
services:
haennowww:
hostname: haennowww
container_name: haennowww
image: nginx:1.25.2
restart: always
ports:
- 80
volumes:
- ./html:/etc/nginx/html
- ./nginx.conf:/etc/nginx/nginx.conf
- ./logs:/etc/nginx/logs
labels:
- traefik.http.routers.haennowww.rule=Host(`${DOCKER_ENV_DOMAIN}`,`www.${DOCKER_ENV_DOMAIN}`)
- traefik.http.routers.haennowww.service=haennowww
#- traefik.http.routers.haennowww.middlewares=auth
- traefik.http.services.haennowww.loadbalancer.server.port=80
- traefik.http.routers.haennowww.entrypoints=https
- traefik.http.routers.haennowww.tls=true
- traefik.http.routers.haennowww.tls.certresolver=${DOCKER_ENV_CERT_RESOLVER}
environment:
- NGINX_HOST=haennowww.${DOCKER_ENV_DOMAIN}
- NGINX_PORT=80
networks:
- internalnetwork
logging: *loki-logging
networks:
internalnetwork:
name: internalnetwork
external: true