Small changes in docs

This commit is contained in:
2024-10-28 19:04:20 +01:00
parent 37462e4646
commit 80b8926a0e
2 changed files with 19 additions and 3 deletions
+11 -3
View File
@@ -6,7 +6,9 @@ Powered by:
- PHP Symfony. - PHP Symfony.
- Easyadmin. - Easyadmin.
## Commands: ## Get started:
### Dev commands
Build containers: Build containers:
```bash ```bash
@@ -33,7 +35,7 @@ XDEBUG_LOG=/dev/stdout
``` ```
### Prod: ### Production commands:
When deploying to a production environment a production build should be used. When deploying to a production environment a production build should be used.
Then, deployment can be done as containers or using docker-compose. Then, deployment can be done as containers or using docker-compose.
@@ -47,7 +49,7 @@ docker build -t somniarooms:prod --target frankenphp_prod .
**Deploy prod image** **Deploy prod image**
You may use a env file to configure the SomniaRoom container: You may use a env file to configure the SomniaRoom container (`.env.prod.local`):
```shell ```shell
SERVER_NAME=localhost SERVER_NAME=localhost
@@ -83,6 +85,12 @@ If you want your app and DB to comunicate using it's hostname (like on this exam
docker network create somniarooms-network docker network create somniarooms-network
``` ```
Check [deploy docs](docs/deploy.md) for complete examples on how to deploy SomniaRooms (backend+frontend) using Docker and Docker-compose.
<warning>
Examples shown on deploy docs may be out-of-date. Make sure all readme recommendations are applied before use on production.
</warning>
## Running the app! ## Running the app!
+8
View File
@@ -1,5 +1,13 @@
<!-- omit in toc -->
# SomniaRooms - How to deploy. # SomniaRooms - How to deploy.
- [Docker compose examples.](#docker-compose-examples)
- [Deploy back-end and front-end on different servers (different ip address).](#deploy-back-end-and-front-end-on-different-servers-different-ip-address)
- [Deploy on the same server.](#deploy-on-the-same-server)
- [What's next?](#whats-next)
---
SomniaRooms is designed to be easy to deploy and use. SomniaRooms is designed to be easy to deploy and use.
Production images for Docker Containers are available from Gitea Registry. Production images for Docker Containers are available from Gitea Registry.