Skip to content

Commit

Permalink
Fix docker timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
ac0d3r committed Dec 14, 2021
1 parent 4769105 commit 31c4541
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,26 @@ services:
image: "redis:alpine"
container_name: hyuga_redis
restart: always
environment:
- SET_CONTAINER_TIMEZONE=true
- CONTAINER_TIMEZONE=Asia/Shanghai
volumes:
- "./deploy/redis:/data"
- /etc/localtime:/etc/localtime:ro

hyuga:
build:
context: .
dockerfile: Dockerfile
container_name: hyuga
environment:
- SET_CONTAINER_TIMEZONE=true
- CONTAINER_TIMEZONE=Asia/Shanghai
ports:
- 80:8000
- "53:53/udp"
restart: always
depends_on:
- "redis"
volumes:
- /etc/localtime:/etc/localtime:ro

0 comments on commit 31c4541

Please sign in to comment.