44 lines
791 B
YAML
44 lines
791 B
YAML
|
version: '2'
|
||
|
|
||
|
networks:
|
||
|
webproxy:
|
||
|
external: true
|
||
|
|
||
|
backend-gitea:
|
||
|
external: false
|
||
|
|
||
|
services:
|
||
|
db:
|
||
|
image: mariadb
|
||
|
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
|
||
|
restart: always
|
||
|
volumes:
|
||
|
- /opt/appdata/nextcloud/mysql:/var/lib/mysql
|
||
|
environment:
|
||
|
- MYSQL_ROOT_PASSWORD=
|
||
|
- MYSQL_PASSWORD=
|
||
|
- MYSQL_DATABASE=nextcloud
|
||
|
- MYSQL_USER=nextcloud
|
||
|
|
||
|
app:
|
||
|
image: nextcloud:fpm
|
||
|
links:
|
||
|
- db
|
||
|
volumes:
|
||
|
- /opt/appdata/nextcloud/www:/var/www/html
|
||
|
restart: always
|
||
|
|
||
|
web:
|
||
|
image: nginx
|
||
|
ports:
|
||
|
- 8080:80
|
||
|
links:
|
||
|
- app
|
||
|
networks:
|
||
|
- webproxy
|
||
|
volumes:
|
||
|
- /opt/appdata/nextcloud/nginx.conf:/etc/nginx/nginx.conf:ro
|
||
|
volumes_from:
|
||
|
- app
|
||
|
restart: always
|