diff --git a/deploy.sh b/deploy.sh index 1c517f2..60b659b 100755 --- a/deploy.sh +++ b/deploy.sh @@ -31,7 +31,7 @@ echo "" echo ">>> Baue Multiplatform Docker Image und pushe..." docker buildx build \ - --platform linux/amd64,linux/arm64 \ + --platform linux/amd64 \ --build-arg BUILD_DATE="${BUILD_DATE}" \ -t "${FULL_IMAGE}" \ --push \ diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 64a5cb6..5346db6 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -9,14 +9,25 @@ services: DB_PATH: /app/data/arbeitszeit.db volumes: - arbeitszeit_data:/app/data - ports: - - "127.0.0.1:${APP_PORT:-3000}:3000" + labels: + - traefik.enable=true + - traefik.docker.network=dockge_default + - traefik.http.routers.arbeitszeit.entrypoints=http + - traefik.http.routers.arbeitszeit.rule=Host(`arbeitszeit.fuerst-stuttgart.de`) + - traefik.http.middlewares.arbeitszeit-https-redirect.redirectscheme.scheme=https + - traefik.http.routers.arbeitszeit.middlewares=arbeitszeit-https-redirect + - traefik.http.routers.arbeitszeit-secure.entrypoints=https + - traefik.http.routers.arbeitszeit-secure.rule=Host(`arbeitszeit.fuerst-stuttgart.de`) + - traefik.http.routers.arbeitszeit-secure.tls=true + - traefik.http.routers.arbeitszeit-secure.service=arbeitszeit + - traefik.http.services.arbeitszeit.loadbalancer.server.port=3000 networks: - - arbeitszeit_net + - proxy volumes: arbeitszeit_data: networks: - arbeitszeit_net: - driver: bridge + proxy: + name: dockge_default + external: true