Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/solareenlo/ft_server
Docker practice
https://github.com/solareenlo/ft_server
42 42born2code 42cursus 42projects docker dockerfile
Last synced: 4 days ago
JSON representation
Docker practice
- Host: GitHub
- URL: https://github.com/solareenlo/ft_server
- Owner: solareenlo
- Created: 2020-11-22T08:30:53.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-02-12T17:41:25.000Z (almost 4 years ago)
- Last Synced: 2024-11-08T02:46:21.221Z (about 2 months ago)
- Topics: 42, 42born2code, 42cursus, 42projects, docker, dockerfile
- Language: Dockerfile
- Homepage:
- Size: 24.5 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ft_server
## Usage
```sh
sudo lsof -i:80
service --status-all
service nginx stop
docker build -t ft_server .
docker run -d --name ft_server -p 80:80 -p 443:443 ft_server:latest
docker run -d --name ft_server -p 80:80 -p 443:443 -e AUTOINDEX=on ft_server:latest
docker run -d --name ft_server -p 80:80 -p 443:443 -e AUTOINDEX=off ft_server:latest
docker exec -it ft_server bash
docker exec ft_server bash /tmp/autoindex.sh on
docker exec ft_server bash /tmp/autoindex.sh off
docker stop ft_server
docker rm ft_server
docker rmi ft_server
docker volume ls
``````sh
service --status-all
nginx -t
nginx -s reload
service nginx reload
```