mirror of
https://github.com/wekan/wekan.git
synced 2025-04-23 13:37:09 -04:00
Part 2: Docker: Try to fix "Failed export and unexpected container restart". Added timezone and localtime.
Thanks to akitzing, mfilser and xet7 ! Fixes #4089
This commit is contained in:
parent
ec33d0b34f
commit
e3292dd562
3 changed files with 16 additions and 8 deletions
|
@ -14,8 +14,8 @@ services:
|
|||
volumes:
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- ./volumes/wekan-db:/data/db
|
||||
- ./volumes/wekan-db-dump:/dump
|
||||
- wekan-db:/data/db
|
||||
- wekan-db-dump:/dump
|
||||
|
||||
wekan-dev:
|
||||
container_name: wekan-dev-app
|
||||
|
@ -45,12 +45,15 @@ services:
|
|||
- ../i18n:/home/wekan/app/i18n
|
||||
- ../server:/home/wekan/app/server
|
||||
- ../public:/home/wekan/app/public
|
||||
- wekan-tmp:/tmp
|
||||
|
||||
volumes:
|
||||
wekan-dev-db:
|
||||
driver: local
|
||||
wekan-dev-db-dump:
|
||||
driver: local
|
||||
wekan-tmp:
|
||||
driver: local
|
||||
|
||||
networks:
|
||||
wekan-dev-tier:
|
||||
|
|
|
@ -664,6 +664,7 @@ services:
|
|||
volumes:
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- wekan-tmp:/tmp
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# ==== OPTIONAL: SHARE DATABASE TO OFFICE LAN AND REMOTE VPN ====
|
||||
|
@ -721,9 +722,6 @@ volumes:
|
|||
driver: local
|
||||
wekan-tmp:
|
||||
driver: local
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- ./volumes/wekan-tmp:/tmp
|
||||
|
||||
networks:
|
||||
wekan-tier:
|
||||
|
|
|
@ -136,6 +136,12 @@ services:
|
|||
rs.initiate({_id:"rs1",members:[{_id:0,host:"mongodb:27017"}]});
|
||||
' 1>/dev/null 2>&1 &
|
||||
mongod --replSet rs1
|
||||
volumes:
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- wekan-db:/data/db
|
||||
- wekan-db-dump:/dump
|
||||
|
||||
wekan:
|
||||
image: quay.io/wekan/wekan
|
||||
container_name: wekan-app
|
||||
|
@ -604,6 +610,10 @@ services:
|
|||
|
||||
depends_on:
|
||||
- mongodb
|
||||
volumes:
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- wekan-tmp:/tmp
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# ==== OPTIONAL: SHARE DATABASE TO OFFICE LAN AND REMOTE VPN ====
|
||||
|
@ -638,9 +648,6 @@ volumes:
|
|||
driver: local
|
||||
wekan-tmp:
|
||||
driver: local
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- ./volumes/wekan-tmp:/tmp
|
||||
|
||||
networks:
|
||||
wekan-tier:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue