update Docker
This commit is contained in:
parent
a210a2f801
commit
5af5002084
@ -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" ]
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user