Skip to content

Instantly share code, notes, and snippets.

@GitSumito
Created December 7, 2017 02:10
Show Gist options
  • Save GitSumito/d1e4e78e93a2aff5998fc2f63b9a9bcd to your computer and use it in GitHub Desktop.
Save GitSumito/d1e4e78e93a2aff5998fc2f63b9a9bcd to your computer and use it in GitHub Desktop.
docker-compose内の時刻を日本時間に変更する ref: https://qiita.com/S-T/items/af88fc8f79c969dfb5ec
nginx:
image: redash/nginx:latest
ports:
- "443:443"
depends_on:
- server
links:
- server:redash
logging:
driver: "json-file"
options:
max-size: 3m
max-file: "5"
restart: always
nginx:
image: redash/nginx:latest
#-----------------------
# 以下追加
volumes:
- /etc/localtime:/etc/localtime:ro
environment:
TZ: Asia/Tokyo
#-----------------------
ports:
- "443:443"
depends_on:
- server
links:
- server:redash
logging:
driver: "json-file"
options:
max-size: 3m
max-file: "5"
restart: always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment