Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Commit

Permalink
Time-sync function to update container time (#1659)
Browse files Browse the repository at this point in the history
* Edited Docker ignore

edited docker for mac

* added time sync function

* Exchanges: update-products 1257

* Cross-platform Makefile (#1660)

* Added database to .gitignore (#1658)

* added time sync function
  • Loading branch information
jraviotta authored and DeviaVir committed Jul 12, 2018
1 parent 982d7ee commit b19ef1b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ zenbot:
#############################
# Docker machine states
#############################
time-sync:
docker run --rm --privileged alpine hwclock -s

up:
$(SUDO) docker-compose --file=$(DC_CONFIG) up
Expand Down
3 changes: 1 addition & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
- ./:/app/
- /app/node_modules/
- /app/dist/
# Avoid syncing database to our server
# Avoid syncing database to our server
- /app/database/
restart: always
tty: true
Expand All @@ -18,7 +18,6 @@ services:
- mongodb
environment:
- MONGODB_PORT_27017_TCP_ADDR=mongodb

mongodb:
image: mongo:latest
volumes:
Expand Down

0 comments on commit b19ef1b

Please sign in to comment.