Updated the Docker files
This commit is contained in:
@ -30,14 +30,14 @@ Akaunting uses [Laravel](http://laravel.com), the best existing PHP framework, a
|
|||||||
|
|
||||||
## Docker
|
## 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
|
# Make sure you the dependencies are installed
|
||||||
composer install && composer dump-autoload
|
composer install && composer dump-autoload
|
||||||
|
|
||||||
# Build the app
|
# Build the app
|
||||||
docker-compose build
|
docker-compose -f docker/docker-compose.build.yaml build
|
||||||
|
|
||||||
# Run the app
|
# Run the app
|
||||||
docker-compose up
|
docker-compose up
|
||||||
@ -46,6 +46,9 @@ docker-compose up
|
|||||||
docker exec -it CONTAINER_ID /bin/sh
|
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
|
## Contributing
|
||||||
|
|
||||||
Fork the repository, make the code changes then submit a pull request.
|
Fork the repository, make the code changes then submit a pull request.
|
||||||
|
@ -2,6 +2,6 @@ version: '3'
|
|||||||
services:
|
services:
|
||||||
web:
|
web:
|
||||||
image: akaunting
|
image: akaunting
|
||||||
build: .
|
build: ../
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
22
docker/docker-compose.mysql.yaml
Normal file
22
docker/docker-compose.mysql.yaml
Normal file
@ -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
|
Reference in New Issue
Block a user