version: '3'
services:
db:
image: mariadb
# image: mysql
restart: always
volumes:
- db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=
env_file:
- db.env
redis:
image: redis
app:
build: ./app
ports:
- 8080:80
- nextcloud:/var/www/html
links:
- db
- redis
nextcloud: