Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
Restyaboard
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Ali Arshad
Restyaboard
Commits
8b8518b9
Commit
8b8518b9
authored
Mar 31, 2017
by
Christophe Angeli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set timezone
parent
bfd2803a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
Dockerfile
Dockerfile
+3
-1
docker-compose.yml
docker-compose.yml
+1
-3
docker-entrypoint.sh
docker-entrypoint.sh
+3
-1
No files found.
Dockerfile
View file @
8b8518b9
...
...
@@ -7,7 +7,8 @@ ENV RESTYABOARD_VERSION=v0.4.2 \
SMTP_USERNAME=root \
SMTP_PASSWORD=root \
SMTP_SERVER=localhost \
SMTP_PORT=465
SMTP_PORT=465 \
TZ=Etc/UTC
# install packages
RUN
apk add
--update
\
...
...
@@ -30,6 +31,7 @@ RUN apk add --update \
postfix
\
postgresql-client
\
supervisor
\
tzdata
\
unzip
&&
\
rm
-rf
/var/cache/apk/
*
...
...
docker-compose.yml
View file @
8b8518b9
version
:
'
2'
services
:
restyaboard
:
build
:
.
ports
:
...
...
@@ -18,10 +16,10 @@ services:
-
SMTP_PASSWORD=pass
-
SMTP_SERVER=server
-
SMTP_PORT=465
-
TZ=Etc/UTC
depends_on
:
-
postgres
restart
:
always
postgres
:
image
:
kiasaki/alpine-postgres
ports
:
...
...
docker-entrypoint.sh
View file @
8b8518b9
...
...
@@ -9,7 +9,9 @@ sed -i \
-e
"s/^.*'R_DB_PASSWORD'.*
$/
define('R_DB_PASSWORD', '
${
POSTGRES_PASSWORD
}
');/g"
\
-e
"s/^.*'R_DB_NAME'.*
$/
define('R_DB_NAME', '
${
POSTGRES_DB
}
');/g"
\
${
ROOT_DIR
}
/server/php/config.inc.php
sed
-i
"
$
a date.timezone =
$(
cat
/etc/timezone
)
"
/etc/php7/php.ini
echo
$TZ
>
/etc/timezone
cp /usr/share/zoneinfo/
$TZ
/etc/localtime
sed
-i
"
$
a date.timezone =
$TZ
"
/etc/php7/php.ini
# postfix
postconf
-e
smtputf8_enable
=
no
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment