Use custom Dockerfiles instead of mounts

This commit is contained in:
Tilo Spannagel 2018-08-01 21:59:11 +02:00
parent 4ce7ef03ba
commit e05e2f1dd7
5 changed files with 17 additions and 12 deletions

View File

@ -3,15 +3,17 @@ version: '3'
services: services:
db: db:
image: mariadb image: mariadb
restart: unless-stopped restart: always
volumes: volumes:
- db:/var/lib/mysql - db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=
env_file: env_file:
- db.env - db.env
app: app:
image: nextcloud:fpm image: nextcloud:fpm
restart: unless-stopped restart: always
volumes: volumes:
- nextcloud:/var/www/html - nextcloud:/var/www/html
environment: environment:
@ -22,28 +24,24 @@ services:
- db - db
web: web:
image: nginx build: ./web
restart: unless-stopped restart: always
volumes: volumes:
- nextcloud:/var/www/html:ro - nextcloud:/var/www/html:ro
- ./nginx.conf:/etc/nginx/nginx.conf:ro
environment: environment:
- VIRTUAL_HOST=servhostname.local - VIRTUAL_HOST=
depends_on: depends_on:
- app - app
- proxy
networks: networks:
- proxy-tier - proxy-tier
- default - default
proxy: proxy:
image: jwilder/nginx-proxy:alpine build: ./proxy
restart: unless-stopped restart: always
ports: ports:
- 80:80 - 80:80
- 443:443 - 443:443
environment:
- MAX_UPLOAD_SIZE=10GB
volumes: volumes:
- certs:/etc/nginx/certs:ro - certs:/etc/nginx/certs:ro
- vhost.d:/etc/nginx/vhost.d - vhost.d:/etc/nginx/vhost.d

View File

@ -0,0 +1,3 @@
FROM jwilder/nginx-proxy:alpine
COPY uploadsize.conf /etc/nginx/conf.d/uploadsize.conf

View File

@ -0,0 +1 @@
client_max_body_size 10G;

View File

@ -0,0 +1,3 @@
FROM nginx
COPY nginx.conf /etc/nginx/nginx.conf