Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
s4ke committed Nov 12, 2023
1 parent dfa56dd commit 8489e4c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deploy/stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '3.8'

services:
app:
image: ghcr.io/s4ke/docker-swarm-multitenant-proxy:0.2.4
image: ghcr.io/s4ke/docker-swarm-multitenant-proxy:0.2.6
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
Expand All @@ -14,6 +14,7 @@ services:
- TLS_CERT_FILE=/run/secrets/tls_cert
- TLS_CA_FILE=/run/secrets/tls_ca
- TLS_DISABLE=false
user: root
secrets:
- tls_key
- tls_cert
Expand Down
3 changes: 3 additions & 0 deletions docker-swarm-multitenant-proxy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ WORKDIR /opt/node_app/app
COPY --chown=node:node . .
RUN npx tsc

# make it root so that the docker socket works
USER root

# if you want to use npm start instead, then use `docker run --init in production`
# so that signals are passed properly. Note the code in index.js is needed to catch Docker signals
# using node here is still more graceful stopping then npm with --init afaik
Expand Down

0 comments on commit 8489e4c

Please sign in to comment.