mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-22 03:36:39 +00:00
[feature] Configurable timezone in containers (#2046)
This commit is contained in:
parent
2796a2e82f
commit
96dd0e75f2
|
@ -21,6 +21,8 @@ RUN yarn install --cwd web/source && \
|
|||
|
||||
# stage 3: build the executor container
|
||||
FROM --platform=${TARGETPLATFORM} alpine:3.17.2 as executor
|
||||
RUN apk add --no-cache tzdata
|
||||
ENV TZ="UTC"
|
||||
|
||||
# switch to non-root user:group for GtS
|
||||
USER 1000:1000
|
||||
|
|
|
@ -13,6 +13,7 @@ services:
|
|||
GTS_DB_ADDRESS: /gotosocial/storage/sqlite.db
|
||||
GTS_LETSENCRYPT_ENABLED: "false"
|
||||
GTS_LETSENCRYPT_EMAIL_ADDRESS: ""
|
||||
#TZ: "UTC"
|
||||
## For reverse proxy setups:
|
||||
# GTS_TRUSTED_PROXIES: "172.x.x.x"
|
||||
ports:
|
||||
|
@ -23,6 +24,8 @@ services:
|
|||
#- "127.0.0.1:8080:8080"
|
||||
volumes:
|
||||
- ~/gotosocial/data:/gotosocial/storage
|
||||
#- /etc/localtime:/etc/localtime:ro
|
||||
#- /etc/timezone:/etc/timezone:ro
|
||||
restart: "always"
|
||||
|
||||
networks:
|
||||
|
|
Loading…
Reference in a new issue