Migrated from sqlite to MySQL

This commit is contained in:
Joan Cano
2023-07-04 00:14:14 +02:00
parent 3c1fb2474b
commit 69b2034bbe
7 changed files with 266 additions and 110 deletions

View File

@@ -14,3 +14,26 @@ services:
- LATITUDE=${LATITUDE}
- LONGITUDE=${LONGITUDE}
- SLEEP_TIME=${SLEEP_TIME}
- DB_HOST=${DB_HOST}
- DB_NAME=${DB_NAME}
- DB_USER=${DB_USER}
- DB_PASSWORD=${DB_PASSWORD}
wallamanta_db:
image: mysql:8
container_name: wallamanta_db
volumes:
- ./db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_DATABASE=${DB_NAME}
- MYSQL_USER=${DB_USER}
- MYSQL_PASSWORD=${DB_PASSWORD}
restart: unless-stopped
wallamanta_adminer:
image: adminer
container_name: wallamanta_adminer
restart: unless-stopped
ports:
- 8555:8080