File tree 2 files changed +12
-11
lines changed
2 files changed +12
-11
lines changed Original file line number Diff line number Diff line change 1
1
FROM alpine
2
2
3
+ # Add support for TZ environment variable
4
+ RUN apk add --no-cache tzdata
5
+
3
6
VOLUME /data
4
7
5
8
WORKDIR /config
Original file line number Diff line number Diff line change @@ -163,21 +163,20 @@ services:
163
163
image: ghcr.io/itsnotgoodname/smtpbridge:latest
164
164
container_name: smtpbridge
165
165
environment:
166
- - SMTPBRIDGE_CONFIG_YAML: | # Config option 1
167
- endpoints:
168
- hello_world:
169
- kind: console
170
-
171
- rules:
172
- hello_world:
166
+ TZ: Etc/UTC
167
+ SMTPBRIDGE_CONFIG_YAML: | # Config option 1
168
+ endpoints:
169
+ hello_world:
170
+ kind: console
171
+
172
+ rules:
173
+ hello_world:
173
174
ports:
174
175
- 1025:1025
175
176
- 8080:8080
176
177
volumes:
177
178
- /path/to/config:/config # Config option 2
178
179
- /path/to/data:/data
179
- - /etc/timezone:/etc/timezone:ro
180
- - /etc/localtime:/etc/localtime:ro
181
180
restart: unless-stopped
182
181
` ` `
183
182
@@ -186,12 +185,11 @@ services:
186
185
` ` ` sh
187
186
docker run -d \
188
187
--name=smtpbridge \
188
+ -e TZ=Etc/UTC \
189
189
-p 1025:1025 \
190
190
-p 8080:8080 \
191
191
-v /path/to/config:/config \
192
192
-v /path/to/data:/data \
193
- -v /etc/timezone:/etc/timezone:ro \
194
- -v /etc/localtime:/etc/localtime:ro \
195
193
--restart unless-stopped \
196
194
ghcr.io/itsnotgoodname/smtpbridge:latest
197
195
` ` `
You can’t perform that action at this time.
0 commit comments