Skip to content

Commit

Permalink
Sync time in Docker container with host
Browse files Browse the repository at this point in the history
Resolves #177
  • Loading branch information
Phu2 authored and sol committed Jun 18, 2024
1 parent 7abeafb commit 599006e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion docker-compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ services:
dockerfile: Dockerfile.dev
volumes:
- .:/home/playground/metafacture-playground
- '/etc/timezone:/etc/timezone:ro' # Sync with host
- '/etc/localtime:/etc/localtime:ro' # Sync with host
ports:
- 8280:8280
- 9630:9630
- 9630:9630
5 changes: 4 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@ services:
dockerfile: Dockerfile.prod
ports:
- 3000:3000
volumes:
- '/etc/timezone:/etc/timezone:ro' # Sync with host
- '/etc/localtime:/etc/localtime:ro' # Sync with host
mem_limit: 8192m
cpus: 0.5
cpus: 0.5

0 comments on commit 599006e

Please sign in to comment.