docker: nextcloud tags explained

master
tiyn 1 year ago
parent fdf05f68fa
commit 8fd6f9312d

@ -12,6 +12,16 @@ Docker container.
Create the files `rebuild.sh` and `docker-compose.yml` at the same place. Create the files `rebuild.sh` and `docker-compose.yml` at the same place.
Change the settings according to your needs and run `./rebuild.sh` afterwards. Change the settings according to your needs and run `./rebuild.sh` afterwards.
It is recommended to use the versionnumber instead of `:latest` for both the MariaDB and the
NextCloud image like the following example.
```
nextcloud:22
mariadb:9
```
Make sure to substitute all the occurences of the `:latest` tag accordingly.
Updating has to be done manually so nothing breaks.
## Volumes ## Volumes
@ -50,7 +60,7 @@ volumes:
services: services:
db: db:
image: mariadb image: mariadb:latest
restart: always restart: always
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
volumes: volumes:
@ -62,7 +72,7 @@ services:
- MYSQL_USER=nextcloud - MYSQL_USER=nextcloud
app: app:
image: nextcloud image: nextcloud:latest
restart: always restart: always
ports: ports:
- 8080:80 - 8080:80
@ -81,5 +91,4 @@ volumes:
driver: local driver: local
nextcloud: nextcloud:
driver: local driver: local
``` ```

Loading…
Cancel
Save