Skip to content

Commit

Permalink
Part 2: Docker: Try to fix "Failed export and unexpected container re…
Browse files Browse the repository at this point in the history
…start". Added timezone and localtime.

Thanks to akitzing, mfilser and xet7 !

Fixes #4089
  • Loading branch information
xet7 committed Oct 28, 2021
1 parent ec33d0b commit e3292dd
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
7 changes: 5 additions & 2 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down
4 changes: 1 addition & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ====
Expand Down Expand Up @@ -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:
Expand Down
13 changes: 10 additions & 3 deletions torodb-postgresql/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 ====
Expand Down Expand Up @@ -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:
Expand Down

1 comment on commit e3292dd

@mfilser
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xet7
everything in folder .devcontainer isn't related to production environments, it's just for development 😉

Please sign in to comment.