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:
Lauri Ojansivu 2021-10-28 16:01:45 +03:00
parent ec33d0b34f
commit e3292dd562
3 changed files with 16 additions and 8 deletions

View file

@ -14,8 +14,8 @@ services:
volumes: volumes:
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro - /etc/timezone:/etc/timezone:ro
- ./volumes/wekan-db:/data/db - wekan-db:/data/db
- ./volumes/wekan-db-dump:/dump - wekan-db-dump:/dump
wekan-dev: wekan-dev:
container_name: wekan-dev-app container_name: wekan-dev-app
@ -45,12 +45,15 @@ services:
- ../i18n:/home/wekan/app/i18n - ../i18n:/home/wekan/app/i18n
- ../server:/home/wekan/app/server - ../server:/home/wekan/app/server
- ../public:/home/wekan/app/public - ../public:/home/wekan/app/public
- wekan-tmp:/tmp
volumes: volumes:
wekan-dev-db: wekan-dev-db:
driver: local driver: local
wekan-dev-db-dump: wekan-dev-db-dump:
driver: local driver: local
wekan-tmp:
driver: local
networks: networks:
wekan-dev-tier: wekan-dev-tier:

View file

@ -664,6 +664,7 @@ services:
volumes: volumes:
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro - /etc/timezone:/etc/timezone:ro
- wekan-tmp:/tmp
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
# ==== OPTIONAL: SHARE DATABASE TO OFFICE LAN AND REMOTE VPN ==== # ==== OPTIONAL: SHARE DATABASE TO OFFICE LAN AND REMOTE VPN ====
@ -721,9 +722,6 @@ volumes:
driver: local driver: local
wekan-tmp: wekan-tmp:
driver: local driver: local
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- ./volumes/wekan-tmp:/tmp
networks: networks:
wekan-tier: wekan-tier:

View file

@ -136,6 +136,12 @@ services:
rs.initiate({_id:"rs1",members:[{_id:0,host:"mongodb:27017"}]}); rs.initiate({_id:"rs1",members:[{_id:0,host:"mongodb:27017"}]});
' 1>/dev/null 2>&1 & ' 1>/dev/null 2>&1 &
mongod --replSet rs1 mongod --replSet rs1
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- wekan-db:/data/db
- wekan-db-dump:/dump
wekan: wekan:
image: quay.io/wekan/wekan image: quay.io/wekan/wekan
container_name: wekan-app container_name: wekan-app
@ -604,6 +610,10 @@ services:
depends_on: depends_on:
- mongodb - mongodb
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- wekan-tmp:/tmp
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
# ==== OPTIONAL: SHARE DATABASE TO OFFICE LAN AND REMOTE VPN ==== # ==== OPTIONAL: SHARE DATABASE TO OFFICE LAN AND REMOTE VPN ====
@ -638,9 +648,6 @@ volumes:
driver: local driver: local
wekan-tmp: wekan-tmp:
driver: local driver: local
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- ./volumes/wekan-tmp:/tmp
networks: networks:
wekan-tier: wekan-tier: