You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
876 B
YAML
46 lines
876 B
YAML
5 years ago
|
services:
|
||
|
nc:
|
||
|
image: nextcloud:apache
|
||
|
restart: always
|
||
|
ports:
|
||
|
- 80:80
|
||
|
volumes:
|
||
|
- nc_data:/var/www/html
|
||
|
networks:
|
||
|
- redisnet
|
||
|
- dbnet
|
||
|
environment:
|
||
|
- REDIS_HOST=redis
|
||
|
- MYSQL_HOST=db
|
||
|
- MYSQL_DATABASE=nextcloud
|
||
|
- MYSQL_USER=nextcloud
|
||
|
- MYSQL_PASSWORD=nextcloud
|
||
|
redis:
|
||
|
image: redis:alpine
|
||
|
restart: always
|
||
|
networks:
|
||
|
- redisnet
|
||
4 years ago
|
expose:
|
||
|
- 6379
|
||
5 years ago
|
db:
|
||
3 years ago
|
image: mariadb:10.5
|
||
5 years ago
|
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
|
||
|
restart: always
|
||
|
volumes:
|
||
|
- db_data:/var/lib/mysql
|
||
|
networks:
|
||
|
- dbnet
|
||
|
environment:
|
||
|
- MYSQL_DATABASE=nextcloud
|
||
|
- MYSQL_USER=nextcloud
|
||
|
- MYSQL_ROOT_PASSWORD=nextcloud
|
||
|
- MYSQL_PASSWORD=nextcloud
|
||
4 years ago
|
expose:
|
||
|
- 3306
|
||
5 years ago
|
volumes:
|
||
|
db_data:
|
||
|
nc_data:
|
||
|
networks:
|
||
|
dbnet:
|
||
|
redisnet:
|