-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
39 lines (35 loc) · 1.23 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
# https://hub.docker.com/_/node
---
version: "3.8"
services:
fach:
image: node:18-alpine
container_name: fachinformatiker-azubi-de
restart: unless-stopped
working_dir: /app
command: npm run serve
environment:
- NODE_ENV=production
volumes:
- ./:/app
labels:
traefik.enable: true
# www
traefik.http.routers.www_fachinformatiker.entrypoints: https
traefik.http.routers.www_fachinformatiker.rule: Host(`www.fachinformatiker-azubi.de`)
traefik.http.routers.www_fachinformatiker.tls: true
traefik.http.routers.www_fachinformatiker.tls.certresolver: lets
traefik.http.routers.www_fachinformatiker.middlewares: wwwtohttps
# non-www
traefik.http.routers.fachinformatiker.entrypoints: https
traefik.http.routers.fachinformatiker.rule: Host(`fachinformatiker-azubi.de`)
traefik.http.routers.fachinformatiker.tls: true
traefik.http.routers.fachinformatiker.tls.certresolver: lets
traefik.http.routers.fachinformatiker.service: fachinformatiker_service
traefik.http.services.fachinformatiker_service.loadbalancer.server.port: 3000
networks:
- traefik_proxy
networks:
traefik_proxy:
name: traefik_proxy
external: true