Skip to content

Commit

Permalink
chore: select better tailscale state dir
Browse files Browse the repository at this point in the history
  • Loading branch information
esolitos committed Sep 21, 2023
1 parent 5a22158 commit 128ed22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/drupal-tailscale/default.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ COPY ${COPY_FROM}/infrastructure/docker/drupal-tailscale/init-tailscale.sh /dock
# Set default values for Tailscale environment variables.
ENV TS_USERSPACE=true
ENV TS_AUTH_ONCE=true
ENV TS_STATE_DIR=/tmp/tailscale
ENV TS_STATE_DIR=/ts-state
ENV TS_SOCKET=/var/run/tailscale/tailscaled.sock
ENV TS_EXTRA_ARGS="--ssh"

Expand All @@ -29,7 +29,7 @@ RUN mkdir -p ${TS_STATE_DIR}/ $(dirname ${TS_SOCKET})/ && \
USER wodby

# Tailscale state directory should be mounted to persist across restarts.
VOLUME "/tmp/tailscale"
VOLUME "/ts-state"

# This container is intended to be run as a sidecar to the main Drupal container.
CMD [ "sleep", "infinity" ]
Expand Down

0 comments on commit 128ed22

Please sign in to comment.