0
0
Fork 0
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:
Olliver Schinagl 2023-05-29 10:22:28 +02:00
parent f2c8cb599e
commit 7a86f30009
No known key found for this signature in database
GPG key ID: 96E1A3A6C9044763
22 changed files with 61 additions and 32 deletions

View file

@ -33,7 +33,7 @@ services:
- redis
web:
build: ./web
image: nginx:alpine
restart: always
ports:
- 127.0.0.1:8080:80
@ -41,6 +41,9 @@ services:
- nextcloud:/var/www/html:z,ro
depends_on:
- app
configs:
- source: web
target: /etc/nginx/nginx.conf
cron:
image: nextcloud:fpm-alpine
@ -52,6 +55,10 @@ services:
- db
- redis
configs:
web:
file: nginx.conf
volumes:
db:
nextcloud:

View file

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