forked from Somnia/SomniaRooms
Small changes in docs
This commit is contained in:
@@ -6,7 +6,9 @@ Powered by:
|
||||
- PHP Symfony.
|
||||
- Easyadmin.
|
||||
|
||||
## Commands:
|
||||
## Get started:
|
||||
|
||||
### Dev commands
|
||||
|
||||
Build containers:
|
||||
```bash
|
||||
@@ -33,7 +35,7 @@ XDEBUG_LOG=/dev/stdout
|
||||
```
|
||||
|
||||
|
||||
### Prod:
|
||||
### Production commands:
|
||||
|
||||
When deploying to a production environment a production build should be used.
|
||||
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**
|
||||
|
||||
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
|
||||
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
|
||||
```
|
||||
|
||||
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!
|
||||
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
<!-- omit in toc -->
|
||||
# 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.
|
||||
|
||||
Production images for Docker Containers are available from Gitea Registry.
|
||||
|
||||
Reference in New Issue
Block a user