diff --git a/README.md b/README.md index 89f7137..33b0cc2 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,13 @@ # FE_Charts Fire Emblem Charts is a mobile application that allows you to view the statistics of the characters in the game Fire Emblem Three Houses in the form of graphics. +## Build the app + +```bash +docker build -t odari/fecharts_api:1.0.0 . +docker compose up -d +``` + ## Setup the app - Change the variables in the `database.php` file to match the server. diff --git a/docker-compose.yml b/docker-compose.yml index e943240..f5e9c43 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,5 +1,5 @@ services: - db: + mariadb: image: docker.io/library/mariadb:11.5.2 container_name: ${MYSQL_HOST} restart: always @@ -10,12 +10,14 @@ services: MYSQL_DATABASE: ${MYSQL_DATABASE} MYSQL_USER: ${MYSQL_USER} MYSQL_PASSWORD: ${MYSQL_PASSWORD} + volumes: + - ~/volumes/fecharts:/var/lib/mysql phpmyadmin: - image: docker.io/library/phpmyadmin + image: docker.io/library/phpmyadmin:5.2.1 container_name: fecharts_phpmyadmin links: - - ${MYSQL_HOST} + - mariadb restart: unless-stopped ports: - 127.0.0.1:${PHPMYADMIN_PORT}:80 @@ -28,7 +30,7 @@ services: image: odari/fecharts_api:1.0.0 container_name: fecharts_api links: - - ${MYSQL_HOST} + - mariadb restart: always ports: - 127.0.0.1:${FECHARTS_API_PORT}:80