docker-compose: Set mariadb version and added local dev env to readme

main
Igor Scheller 5 years ago committed by msquare
parent 75f04507ae
commit 7a2427e702

@ -132,6 +132,20 @@ Import database
docker exec -it engelsystem bin/migrate
```
#### Local development
To use the working directory in the container the docker-compose file has to be changed:
```yaml
[...]
nginx:
volumes:
- ../public/assets:/var/www/public/assets
[...]
engelsystem:
volumes:
- ../:/var/www
[...]
```
#### Scripts
##### bin/deploy.sh
The `bin/deploy.sh` script can be used to deploy the engelsystem. It uses rsync to deploy the application to a server over ssh.

@ -27,12 +27,13 @@ services:
depends_on:
- database
database:
image: mariadb:latest
image: mariadb:10.2
environment:
MYSQL_DATABASE: engelsystem
MYSQL_USER: engelsystem
MYSQL_PASSWORD: engelsystem
MYSQL_RANDOM_ROOT_PASSWORD: 1
MYSQL_INITDB_SKIP_TZINFO: "yes"
volumes:
- db:/var/lib/mysql
networks:

Loading…
Cancel
Save