Skip to content

Commit c75cebd

Browse files
committed
add versioning into the compose file, create directory for container in home directory
1 parent 822bd5a commit c75cebd

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Clone this repo
1313

1414
From repo folder:
1515

16-
## Method
16+
## Setting up
1717
### Docker Compose:
1818

1919
docker-compose up -d
@@ -22,6 +22,10 @@ From repo folder:
2222

2323
docker-compose down
2424

25+
## Container to host mapping
26+
27+
When you run the docker-compose up -d if a folder called "coder" in your home directory doesnt exist it creates it. This is the volume mapping where everything you do on the container and settings you setup will be saved for future use. This is also a place for you to locally move files into that makes them accessible from the container, or generated from the container accessible by the host.
28+
2529
## Tests
2630
### Steps to run tests:
2731

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
version: '3'
22
services:
33
vscode:
4-
image: "registry.gitlab.com/softrams-public/vscode-docker"
4+
image: "registry.gitlab.com/softrams-public/vscode-docker:v1.0.0"
55
ports:
66
- "8080:8080"
77
environment:
88
- PASSWORD=softrams
99
volumes:
10-
- ~/:/home/seluser
10+
- ~/coder/:/home/seluser

0 commit comments

Comments
 (0)