Update README.md
This commit is contained in:
parent
c135c604f0
commit
1fe4a98655
1 changed files with 2 additions and 70 deletions
72
README.md
72
README.md
|
@ -4,73 +4,5 @@
|
||||||

|

|
||||||

|

|
||||||
|
|
||||||
## docker-compose example
|
[](https://gitlab.unjx.de/flohoss/cafe-plaetschwiesle/-/commits/main)
|
||||||
|
[](https://gitlab.unjx.de/flohoss/cafe-plaetschwiesle/-/commits/main)
|
||||||
```yaml
|
|
||||||
services:
|
|
||||||
cafe:
|
|
||||||
image: ghcr.io/flohoss/cafe-plaetschwiesle:latest
|
|
||||||
container_name: cafe
|
|
||||||
restart: unless-stopped
|
|
||||||
environment:
|
|
||||||
- PUID=1000
|
|
||||||
- PGID=1000
|
|
||||||
- ALLOWED_HOSTS=http://localhost:5000,https://home.example.com
|
|
||||||
- SWAGGER=true
|
|
||||||
- LOG_LEVEL=info # trace,debug,info,warn,error,fatal,panic
|
|
||||||
volumes:
|
|
||||||
- ./storage:/app/storage
|
|
||||||
ports:
|
|
||||||
- '127.0.0.1:5000:5000'
|
|
||||||
```
|
|
||||||
|
|
||||||
## docker-compose example with MariaDB as database
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
networks:
|
|
||||||
net:
|
|
||||||
external: false
|
|
||||||
|
|
||||||
services:
|
|
||||||
cafe-db:
|
|
||||||
image: lscr.io/linuxserver/mariadb:latest
|
|
||||||
container_name: cafe-db
|
|
||||||
restart: unless-stopped
|
|
||||||
environment:
|
|
||||||
- PUID=1000
|
|
||||||
- PGID=1000
|
|
||||||
- MYSQL_ROOT_PASSWORD=root
|
|
||||||
- TZ=Europe/Berlin
|
|
||||||
- MYSQL_DATABASE=db
|
|
||||||
- MYSQL_USER=user
|
|
||||||
- MYSQL_PASSWORD=password
|
|
||||||
volumes:
|
|
||||||
- ./db:/config
|
|
||||||
expose:
|
|
||||||
- 3306
|
|
||||||
networks:
|
|
||||||
- net
|
|
||||||
|
|
||||||
cafe:
|
|
||||||
image: ghcr.io/flohoss/cafe-plaetschwiesle:latest
|
|
||||||
container_name: cafe
|
|
||||||
restart: unless-stopped
|
|
||||||
depends_on:
|
|
||||||
- cafe-db
|
|
||||||
environment:
|
|
||||||
- PUID=1000
|
|
||||||
- PGID=1000
|
|
||||||
- ALLOWED_HOSTS=http://localhost:5000,https://home.example.com
|
|
||||||
- SWAGGER=true
|
|
||||||
- LOG_LEVEL=info # trace,debug,info,warn,error,fatal,panic
|
|
||||||
- MYSQL_URL=cafe-db:3306
|
|
||||||
- MYSQL_USER=user
|
|
||||||
- MYSQL_PASSWORD=password
|
|
||||||
- MYSQL_DATABASE=db
|
|
||||||
volumes:
|
|
||||||
- ./storage:/app/storage
|
|
||||||
ports:
|
|
||||||
- '127.0.0.1:5000:5000'
|
|
||||||
networks:
|
|
||||||
- net
|
|
||||||
```
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue