Skip to content

Commit 874d3b8

Browse files
committed
timezone added
1 parent bf0d8d5 commit 874d3b8

File tree

6 files changed

+16
-0
lines changed

6 files changed

+16
-0
lines changed

.env.dev.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11

22
APP_ENV=dev
33
APP_PATH=.
4+
APP_TIMEZONE=Europe/Moscow
45

56
# app
67
GOGS_VERSION=0.11.86

.env.prod.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11

22
APP_ENV=prod
33
APP_PATH=.
4+
APP_TIMEZONE=Europe/Moscow
45

56
# app
67
GOGS_VERSION=0.11.86

docker-compose.dev.yml.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ services:
77
context: ./docker/${APP_ENV}/app
88
args:
99
GOGS_VERSION: ${GOGS_VERSION}
10+
APP_TIMEZONE: ${APP_TIMEZONE}
1011
networks:
1112
- gogs
1213
depends_on:

docker-compose.prod.yml.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ services:
77
context: ./docker/${APP_ENV}/app
88
args:
99
GOGS_VERSION: ${GOGS_VERSION}
10+
APP_TIMEZONE: ${APP_TIMEZONE}
1011
restart: always
1112
networks:
1213
- gogs

docker/dev/app/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,9 @@
22
ARG GOGS_VERSION
33

44
FROM gogs/gogs:${GOGS_VERSION}
5+
6+
ARG APP_TIMEZONE
7+
8+
# timezone
9+
RUN ln -snf /usr/share/zoneinfo/${APP_TIMEZONE} /etc/localtime && echo ${APP_TIMEZONE} > /etc/timezone && \
10+
date

docker/prod/app/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,9 @@
22
ARG GOGS_VERSION
33

44
FROM gogs/gogs:${GOGS_VERSION}
5+
6+
ARG APP_TIMEZONE
7+
8+
# timezone
9+
RUN ln -snf /usr/share/zoneinfo/${APP_TIMEZONE} /etc/localtime && echo ${APP_TIMEZONE} > /etc/timezone && \
10+
date

0 commit comments

Comments
 (0)