Added docker-compose

This commit is contained in:
Christian Anetzberger
2023-01-27 18:42:35 +01:00
parent b4811c5d43
commit 9ff2199914
2 changed files with 35 additions and 2 deletions

View File

@@ -1,2 +0,0 @@
//npm.greensock.com/:_authToken=TOKEN
@gsap:registry=https://npm.greensock.com

35
docker-compose.yml Normal file
View File

@@ -0,0 +1,35 @@
version: "3.9"
services:
prothmann:
container_name: prothmann
image: canetzberger/www.prothmann.com
build: .
environment:
NODE_ENV: production
networks:
- traefik_proxy
command: npm start
volumes:
# mount current dir into docker container
- .:/my-app
# ignore local node_modules, use container
- /my-app/node_modules
labels:
- "traefik.enable=true"
- "traefik.http.routers.prothmann.entrypoints=http"
- "traefik.http.routers.prothmann.rule=Host(`www.prothmann.com`)"
- "traefik.http.middlewares.prothmann-https-redirect.redirectscheme.scheme=https"
- "traefik.http.routers.prothmann.middlewares=prothmann-https-redirect"
- "traefik.http.routers.prothmann-secure.entrypoints=https"
- "traefik.http.routers.prothmann-secure.rule=Host(`www.prothmann.com`)"
- "traefik.http.routers.prothmann-secure.tls=true"
- "traefik.http.routers.prothmann-secure.tls.certresolver=http"
- "traefik.http.routers.prothmann-secure.service=prothmann"
- "traefik.http.services.prothmann.loadbalancer.server.port=3001"
- "traefik.docker.network=traefik_proxy"
- "traefik.http.routers.prothmann-secure.middlewares=secHeaders@file"
networks:
traefik_proxy:
external: true