mirror of
https://github.com/nextcloud/docker.git
synced 2025-06-17 08:34:48 +02:00
examples: Favor configs over builds
There doesn't seem to be a need to prefer building custom containers, just to add a config file, a need that is easily solved with compose configs. Configs are still managed through git, just no new container needs to be built, slightly simplifying things. Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
This commit is contained in:
parent
f2c8cb599e
commit
7a86f30009
22 changed files with 61 additions and 32 deletions
|
@ -28,7 +28,7 @@ services:
|
|||
- redis
|
||||
|
||||
web:
|
||||
build: ./web
|
||||
image: nginx:alpine
|
||||
restart: always
|
||||
ports:
|
||||
- 127.0.0.1:8080:80
|
||||
|
@ -36,6 +36,9 @@ services:
|
|||
- nextcloud:/var/www/html:z,ro
|
||||
depends_on:
|
||||
- app
|
||||
configs:
|
||||
- source: web
|
||||
target: /etc/nginx/nginx.conf
|
||||
|
||||
cron:
|
||||
image: nextcloud:fpm-alpine
|
||||
|
@ -47,6 +50,11 @@ services:
|
|||
- db
|
||||
- redis
|
||||
|
||||
configs:
|
||||
web:
|
||||
file: nginx.conf
|
||||
|
||||
|
||||
volumes:
|
||||
db:
|
||||
nextcloud:
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
FROM nginx:alpine
|
||||
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
Loading…
Add table
Add a link
Reference in a new issue