Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jingjing-jin/docker-test
https://github.com/jingjing-jin/docker-test
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jingjing-jin/docker-test
- Owner: jingjing-jin
- Created: 2024-12-05T04:51:49.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-12-06T22:58:31.000Z (about 1 month ago)
- Last Synced: 2024-12-06T23:27:05.532Z (about 1 month ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Build
```
docker build -t docker_test .
```
### Run app
```sh
docker run -it -p 8080:3001 docker_test
```
### Share stroage with bind mounts
```sh
docker run -it -v ./website:/public -p 8080:3001 docker_test
# mapping local directory './website' from host system to the docker container directory'/public'
```
### Test
```sh
curl http://localhost:8080/ping
```
### Run all: app and db
```sh
docker-compose up
```