diff --git a/README.md b/README.md index c20733b23..2539f72b0 100644 --- a/README.md +++ b/README.md @@ -30,14 +30,14 @@ Akaunting uses [Laravel](http://laravel.com), the best existing PHP framework, a ## Docker -It is possible to containerise Akounting using the [`docker-compose`](./docker-compose.yaml) file. Here are a few commands: +It is possible to containerise Akaunting using the [`docker-compose`](docker/docker-compose.build.yaml) file. Here are a few commands: ``` # Make sure you the dependencies are installed composer install && composer dump-autoload # Build the app -docker-compose build +docker-compose -f docker/docker-compose.build.yaml build # Run the app docker-compose up @@ -46,6 +46,9 @@ docker-compose up docker exec -it CONTAINER_ID /bin/sh ``` +## docker-compose examples +In the `docker/` folder you'll find some example file to run the image with several databases. + ## Contributing Fork the repository, make the code changes then submit a pull request. diff --git a/docker-compose.yaml b/docker/docker-compose.build.yaml similarity index 83% rename from docker-compose.yaml rename to docker/docker-compose.build.yaml index 11af63974..f24d8e392 100644 --- a/docker-compose.yaml +++ b/docker/docker-compose.build.yaml @@ -2,6 +2,6 @@ version: '3' services: web: image: akaunting - build: . + build: ../ ports: - "80:80" \ No newline at end of file diff --git a/docker/docker-compose.mysql.yaml b/docker/docker-compose.mysql.yaml new file mode 100644 index 000000000..f330cd829 --- /dev/null +++ b/docker/docker-compose.mysql.yaml @@ -0,0 +1,22 @@ +version: '3' +services: + mysql: + image: mysql + ports: + - 3306:3306 + environment: + MYSQL_ROOT_PASSWORD: akaunting_root_password + MYSQL_DATABASE: akaunting_db + MYSQL_USER: akaunting_admin + MYSQL_PASSWORD: akaunting_password + web: + image: akaunting + ## Uncomment if you wish to use this configuration as development environment. + # volumes: + # - ../:/var/www/html + ports: + - 8080:80 + environment: + APP_DEBUG: "true" + links: + - mysql \ No newline at end of file