update Docker

This commit is contained in:
purerosefallen 2019-07-31 20:57:05 +08:00
parent a210a2f801
commit 5af5002084
No known key found for this signature in database
GPG Key ID: E6D78C90943A3185
2 changed files with 5 additions and 1 deletions

View File

@ -37,4 +37,8 @@ EXPOSE 80
# VOLUME [ "/taiko-web/public/songs" ] # VOLUME [ "/taiko-web/public/songs" ]
ENV TAIKO_URL http://taiko.example.com ENV TAIKO_URL http://taiko.example.com
ENV TAIKO_VERSION Nanahira ENV TAIKO_VERSION Nanahira
ENV TAIKO_REDIS_HOST 127.0.0.1
ENV TAIKO_REDIS_PORT 6379
#ENV TAIKO_REDIS_PASSWORD blank
ENV TAIKO_REDIS_DB 0
CMD [ "/taiko-web/docker/entrypoint.sh" ] CMD [ "/taiko-web/docker/entrypoint.sh" ]

View File

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
echo "{\"songs_baseurl\":\"$TAIKO_URL/songs/\",\"assets_baseurl\":\"$TAIKO_URL/assets/\"}" | tee ./config.json echo "{\"songs_baseurl\":\"$TAIKO_URL/songs/\",\"assets_baseurl\":\"$TAIKO_URL/assets/\",\"redis_host\":\"$TAIKO_REDIS_HOST\",\"redis_port\":$TAIKO_REDIS_PORT,\"redis_password\":\"$TAIKO_REDIS_PASSWORD\",\"redis_db\":$TAIKO_REDIS_DB}" | tee ./config.json
echo "{\"commit\":\"$(git log --pretty=%H -1)\",\"commit_short\":\"$(git log --pretty=%h -1)\",\"version\": \"$TAIKO_VERSION\"}" | tee ./version.json echo "{\"commit\":\"$(git log --pretty=%H -1)\",\"commit_short\":\"$(git log --pretty=%h -1)\",\"version\": \"$TAIKO_VERSION\"}" | tee ./version.json
pm2-docker start ./docker/pm2-docker.json pm2-docker start ./docker/pm2-docker.json