Skip to content

Commit

Permalink
Update Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Fizcko committed Jul 12, 2024
1 parent 7d772bb commit 839eabc
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@ Create a folder into the host for persistant data (SQL data)
$ mkdir -p /opt/mariadb

Create `docker-complose.yml` file then modify or add environment variables if necessary

```
version: '3.3'
version: '3'
services:
db:
image: mariadb:10.5
image: mariadb:11.4-ubi
container_name: sms-gateway_db
restart: always
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
Expand All @@ -45,6 +46,12 @@ services:
- MYSQL_USER=sms-gateway
- MYSQL_PASSWORD=Bpj7hXNCextgnzSWckFybV
- MYSQL_DATABASE=smsd
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
start_period: 15s
interval: 15s
timeout: 5s
retries: 5
backend:
image: fizcko/sms-gateway:latest
container_name: sms-gateway_server
Expand All @@ -54,7 +61,8 @@ services:
devices:
- "/dev/ttyUSB2:/dev/phone"
depends_on:
- "db"
db:
condition: service_healthy
environment:
- MYSQL_HOST=db
- MYSQL_USER=sms-gateway
Expand Down

0 comments on commit 839eabc

Please sign in to comment.