Browse Source

Add .env files and data folders to gitignore

redis
Noah Williams 2 years ago
parent
commit
f75f1c746d
  1. 3
      .gitignore
  2. 31
      docker-compose.yml

3
.gitignore vendored

@ -0,0 +1,3 @@
*.env
nextcloud/
mysql/

31
docker-compose.yml

@ -0,0 +1,31 @@
version: '3.7'
services:
mariadb:
image: mariadb
restart: always
networks:
- nextcloud
volumes:
- ./mysql:/var/lib/mysql
environment:
MYSQL_DATABASE: 'nextcloud_db'
MYSQL_RANDOM_ROOT_PASSWORD: 'true'
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
nextcloud:
image: nextcloud
depends_on:
- mariadb
networks:
- nextcloud_db_net
volumes:
- ./nextcloud:/var/www/html
environment:
MYSQL_HOST: 'mariadb:3306'
MYSQL_DATABASE: 'nextcloud_db'
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
networks:
nextcloud_db_net:
Loading…
Cancel
Save