2056ab2f01
https://github.com/compose-spec/compose-spec/blob/master/spec.md#version-top-level-element Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
46 lines
876 B
YAML
46 lines
876 B
YAML
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
|
|
expose:
|
|
- 6379
|
|
db:
|
|
image: mariadb:10.5
|
|
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
|
|
expose:
|
|
- 3306
|
|
volumes:
|
|
db_data:
|
|
nc_data:
|
|
networks:
|
|
dbnet:
|
|
redisnet:
|