2023-07-06 06:15:45 -07:00
|
|
|
# Initial Setup Instructions
|
2023-07-06 06:10:41 -07:00
|
|
|
How to first begin using this subproject.
|
2023-07-06 06:50:58 -07:00
|
|
|
1. Move to the directory of this README.
|
2023-07-06 06:13:26 -07:00
|
|
|
```
|
|
|
|
$ cd $DOCKER_HOME/Config/ReverseProxy
|
|
|
|
```
|
2023-07-06 06:50:58 -07:00
|
|
|
1. Add configuration files to `./config/conf.d/` which are named based on the domains and subdomains they point to.
|
2023-07-06 06:10:41 -07:00
|
|
|
1. Run the placeholder certificate program.
|
2023-07-06 06:13:26 -07:00
|
|
|
```
|
2023-07-06 06:50:58 -07:00
|
|
|
# ./create_placeholder_certs.sh
|
2023-07-06 06:13:26 -07:00
|
|
|
```
|
2023-07-06 06:50:58 -07:00
|
|
|
1. Make any personal changes to `./config/nginx.conf`.
|
|
|
|
1. Build the project.
|
2023-07-06 06:13:26 -07:00
|
|
|
```
|
|
|
|
# docker compose build
|
|
|
|
```
|
2023-07-06 06:10:41 -07:00
|
|
|
1. Start the project.
|
2023-07-06 06:13:26 -07:00
|
|
|
```
|
|
|
|
# docker compose up -d
|
|
|
|
```
|
2023-07-06 06:10:41 -07:00
|
|
|
1. Verify it started correctly, no configuration file errors.
|
2023-07-06 06:13:26 -07:00
|
|
|
```
|
2023-07-06 06:50:58 -07:00
|
|
|
# docker logs reverseproxy-app-1
|
|
|
|
# docker logs reverseproxy-certbot-1
|
2023-07-06 06:13:26 -07:00
|
|
|
```
|
2023-07-06 06:10:41 -07:00
|
|
|
|
|
|
|
# Other Commands
|
2023-07-06 06:15:45 -07:00
|
|
|
Tasks which will also likely come up while using this subproject.
|
2023-07-06 06:50:58 -07:00
|
|
|
|
2023-07-06 06:10:41 -07:00
|
|
|
## Stop
|
2023-07-06 06:15:45 -07:00
|
|
|
If you need to halt the system you may use either stop or down.
|
2023-07-06 06:16:39 -07:00
|
|
|
```
|
|
|
|
# docker compose stop
|
|
|
|
# docker compose down
|
|
|
|
```
|
2023-07-06 06:50:58 -07:00
|
|
|
|
2023-07-06 06:10:41 -07:00
|
|
|
## Upgrade
|
2023-07-06 06:13:26 -07:00
|
|
|
Upgrading the containers should be as easy as this:
|
2023-07-06 06:16:39 -07:00
|
|
|
```
|
|
|
|
# docker compose down
|
|
|
|
# docker compose pull
|
|
|
|
# docker compose build
|
|
|
|
# docker compose up -d
|
|
|
|
```
|
2023-07-06 06:50:58 -07:00
|
|
|
|
|
|
|
## Update Config
|
|
|
|
Replace the configuration based on any new, updated, or removed files.
|
|
|
|
This may be possible to do when the system is up, buyt the best results have come from going down and back up.
|
|
|
|
This is essentially an upgrade but there is no pull.
|
|
|
|
```
|
|
|
|
# docker compose down
|
|
|
|
# docker compose build
|
|
|
|
# docker compose up -d
|
|
|
|
```
|
2023-07-06 06:52:14 -07:00
|
|
|
If you'd like it as a one-line command:
|
2023-07-06 06:50:58 -07:00
|
|
|
```
|
|
|
|
# docker compose down && docker compose build && docker compose up -d
|
|
|
|
```
|