Skip to content

Commit

Permalink
Merge pull request #32 from klaribot/master
Browse files Browse the repository at this point in the history
I learned a lot of things today
  • Loading branch information
Gjum authored Jun 2, 2022
2 parents 221998e + 32009ed commit b0498b7
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
**/*.sqlite
/mod
/notes
/data
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.idea/
*.iml
/mapsync/
/data/
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ ENV NODE_ENV=production
ENV HOST=0.0.0.0

#Mount your FS or volume or whatnot to this folder
RUN mkdir /mapsync_data
ENV MAPSYNC_DATA_DIR=/mapsync_data
RUN mkdir /data
ENV MAPSYNC_DATA_DIR=/data

EXPOSE 12312/tcp

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ You can control who has access to a Sync Server by editing its `allowed-users.tx

- [Install docker](https://docs.docker.com/get-docker/)
- clone code
- Build the container: `docker compose build map-sync`
- Build the container: `docker-compose build map-sync`
- Wait
- To run server with interactive prompt: `docker compose run -it --rm -p 12312:12312 map-sync`
- To run server with interactive prompt: `docker-compose run --rm -p 12312:12312 map-sync`
- To stop interactive prompt: hit ctrl-c
- To run server headless: `docker compose up map-sync -d`
- To stop headless server: `docker compose down map-sync`
- To run server headless: `docker-compose up map-sync -d`
- To stop headless server: `docker-compose down map-sync`
</details>

<details>
Expand Down
7 changes: 4 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ version: "3.8"

services:
map-sync:
image: ghcr.io/CivPlatform/map-sync
image: ghcr.io/civplatform/map-sync
build: .
stdin_open: true
tty: true
init: true
ports:
- 12312:12312
# volumes:
# - path/here/to/stuff:/other/stuff
volumes:
- ./data:/data

0 comments on commit b0498b7

Please sign in to comment.