Passing these volumes to the container enable gitea to use hosts localtime and timezone.
This is a mandatory change when using the "Setup fail2ban" Guide, but it is not described in the documentation.
- gitea
volumes:
- ./gitea:/data
+ - /etc/timezone:/etc/timezone:ro
+ - /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000"
- "222:22"
- gitea
volumes:
- ./gitea:/data
+ - /etc/timezone:/etc/timezone:ro
+ - /etc/localtime:/etc/localtime:ro
ports:
- - "3000:3000"
- - "222:22"
- gitea
volumes:
- ./gitea:/data
+ - /etc/timezone:/etc/timezone:ro
+ - /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000"
- "222:22"
- gitea
volumes:
- ./gitea:/data
+ - /etc/timezone:/etc/timezone:ro
+ - /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000"
- "222:22"
volumes:
- - ./gitea:/data
+ - gitea:/data
+ - /etc/timezone:/etc/timezone:ro
+ - /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000"
- "222:22"
- gitea
volumes:
- /var/lib/gitea:/data
+ - /etc/timezone:/etc/timezone:ro
+ - /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000"
- "127.0.0.1:2222:22"