Skip to content

Commit

Permalink
use a more general way to configure the time zone of docker containers
Browse files Browse the repository at this point in the history
  • Loading branch information
sbx0 committed Mar 8, 2024
1 parent 64c5bff commit b882e08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion todo-service/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,10 @@ services:
ports:
- "1112:9999"
volumes:
- /etc/timezone:/etc/timezone
- ./logs:/logs
- ./dependency:/dependency
environment:
- TZ=Asia/Shanghai
```

vim quick.sh
Expand Down
3 changes: 2 additions & 1 deletion todo-service/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ services:
ports:
- "1112:9999"
volumes:
- /etc/timezone:/etc/timezone
- ./logs:/logs
networks:
- default_network
environment:
- TZ=Asia/Shanghai
networks:
default_network:
name: default_network
Expand Down

0 comments on commit b882e08

Please sign in to comment.