Created
December 22, 2022 21:05
-
-
Save tq-bit/f342a857494814c577128bac8b9f3adf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.5" | |
services: | |
reverse-proxy: | |
# The official v2 Traefik docker image | |
image: traefik:v2.9 | |
# Enables the web UI and tells Traefik to listen to docker | |
command: --providers.docker | |
ports: | |
# The HTTP port | |
- "80:80" | |
volumes: | |
# So that Traefik can listen to the Docker events | |
- /var/run/docker.sock:/var/run/docker.sock | |
database: | |
image: mariadb:10.5 | |
restart: always | |
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW | |
volumes: | |
- D:/data/Nextcloud/database/:/var/lib/mysql | |
environment: | |
- MYSQL_ROOT_PASSWORD=giepinah! | |
- MYSQL_PASSWORD=giepinah! | |
- MYSQL_DATABASE=nextcloud | |
- MYSQL_USER=nextcloud | |
app: | |
image: nextcloud | |
restart: always | |
labels: | |
- "traefik.http.routers.nextcloud.rule=Host(`nextcloud.localhost`)" | |
ports: | |
- 8080:80 | |
links: | |
- database | |
volumes: | |
- D:/data/Nextcloud/app/:/var/www/html | |
environment: | |
- MYSQL_PASSWORD=<supersecret> | |
- MYSQL_DATABASE=nextcloud | |
- MYSQL_USER=nextcloud | |
- MYSQL_HOST=database |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment