mirror of
https://github.com/nextcloud/docker.git
synced 2024-11-18 02:56:42 +01:00
Use custom Dockerfiles instead of mounts
This commit is contained in:
parent
4ce7ef03ba
commit
e05e2f1dd7
5 changed files with 17 additions and 12 deletions
|
@ -3,15 +3,17 @@ version: '3'
|
|||
services:
|
||||
db:
|
||||
image: mariadb
|
||||
restart: unless-stopped
|
||||
restart: always
|
||||
volumes:
|
||||
- db:/var/lib/mysql
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=
|
||||
env_file:
|
||||
- db.env
|
||||
|
||||
app:
|
||||
image: nextcloud:fpm
|
||||
restart: unless-stopped
|
||||
restart: always
|
||||
volumes:
|
||||
- nextcloud:/var/www/html
|
||||
environment:
|
||||
|
@ -22,28 +24,24 @@ services:
|
|||
- db
|
||||
|
||||
web:
|
||||
image: nginx
|
||||
restart: unless-stopped
|
||||
build: ./web
|
||||
restart: always
|
||||
volumes:
|
||||
- nextcloud:/var/www/html:ro
|
||||
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
||||
environment:
|
||||
- VIRTUAL_HOST=servhostname.local
|
||||
- VIRTUAL_HOST=
|
||||
depends_on:
|
||||
- app
|
||||
- proxy
|
||||
networks:
|
||||
- proxy-tier
|
||||
- default
|
||||
|
||||
proxy:
|
||||
image: jwilder/nginx-proxy:alpine
|
||||
restart: unless-stopped
|
||||
build: ./proxy
|
||||
restart: always
|
||||
ports:
|
||||
- 80:80
|
||||
- 443:443
|
||||
environment:
|
||||
- MAX_UPLOAD_SIZE=10GB
|
||||
volumes:
|
||||
- certs:/etc/nginx/certs:ro
|
||||
- vhost.d:/etc/nginx/vhost.d
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
FROM jwilder/nginx-proxy:alpine
|
||||
|
||||
COPY uploadsize.conf /etc/nginx/conf.d/uploadsize.conf
|
|
@ -0,0 +1 @@
|
|||
client_max_body_size 10G;
|
|
@ -0,0 +1,3 @@
|
|||
FROM nginx
|
||||
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
Loading…
Reference in a new issue