adding nextcloud and portainer compose files
This commit is contained in:
39
nextcloud/compose.yaml
Normal file
39
nextcloud/compose.yaml
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
version: '3'
|
||||||
|
|
||||||
|
#volumes:
|
||||||
|
# nextcloud:
|
||||||
|
# db:
|
||||||
|
|
||||||
|
services:
|
||||||
|
db:
|
||||||
|
image: mariadb:10.6
|
||||||
|
restart: always
|
||||||
|
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
|
||||||
|
volumes:
|
||||||
|
- /mnt/storage/appdata/nextcloud1/mysql:/var/lib/mysql
|
||||||
|
networks:
|
||||||
|
- default
|
||||||
|
environment:
|
||||||
|
- MYSQL_ROOT_PASSWORD=WombatWrangler
|
||||||
|
- MYSQL_PASSWORD=WombatWrangler
|
||||||
|
- MYSQL_DATABASE=nextcloud
|
||||||
|
- MYSQL_USER=nextcloud
|
||||||
|
|
||||||
|
app:
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
image: nextcloud:30
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- 8080:80
|
||||||
|
# links:
|
||||||
|
# - db
|
||||||
|
volumes:
|
||||||
|
- /mnt/storage/appdata/nextcloud1/www/html:/var/www/html
|
||||||
|
networks:
|
||||||
|
- default
|
||||||
|
environment:
|
||||||
|
- MYSQL_PASSWORD=WombatWrangler
|
||||||
|
- MYSQL_DATABASE=nextcloud
|
||||||
|
- MYSQL_USER=nextcloud
|
||||||
|
- MYSQL_HOST=db
|
||||||
35
portainer/compose.yaml
Normal file
35
portainer/compose.yaml
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
version: '3'
|
||||||
|
|
||||||
|
services:
|
||||||
|
portainer:
|
||||||
|
image: portainer/portainer:latest
|
||||||
|
container_name: portainer
|
||||||
|
restart: unless-stopped
|
||||||
|
security_opt:
|
||||||
|
- no-new-privileges:true
|
||||||
|
networks:
|
||||||
|
- proxy
|
||||||
|
volumes:
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
|
- ./data:/data
|
||||||
|
ports:
|
||||||
|
- 9000:9000
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=false"
|
||||||
|
- "traefik.http.routers.portainer.entrypoints=http"
|
||||||
|
- "traefik.http.routers.portainer.rule=Host(`portainer.objectbrokers.com`)"
|
||||||
|
- "traefik.http.middlewares.portainer-https-redirect.redirectscheme.scheme=https"
|
||||||
|
- "traefik.http.routers.portainer.middlewares=portainer-https-redirect"
|
||||||
|
- "traefik.http.routers.portainer-secure.entrypoints=https"
|
||||||
|
- "traefik.http.routers.portainer-secure.rule=Host(`portainer.objectbrokers.com`)"
|
||||||
|
- "traefik.http.routers.portainer-secure.tls=true"
|
||||||
|
- "traefik.http.routers.portainer-secure.tls.certresolver=http"
|
||||||
|
- "traefik.http.routers.portainer-secure.service=portainer"
|
||||||
|
- "traefik.http.services.portainer.loadbalancer.server.port=9000"
|
||||||
|
- "traefik.docker.network=proxy"
|
||||||
|
|
||||||
|
networks:
|
||||||
|
proxy:
|
||||||
|
external: true
|
||||||
|
|
||||||
14
portainer/portainer-compose.yml
Normal file
14
portainer/portainer-compose.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
services:
|
||||||
|
portainer:
|
||||||
|
image: portainer/portainer:latest
|
||||||
|
container_name: portainer
|
||||||
|
restart: unless-stopped
|
||||||
|
security_opt:
|
||||||
|
- no-new-privileges:true
|
||||||
|
volumes:
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
|
- ./data:/data
|
||||||
|
ports:
|
||||||
|
- 9000:9000
|
||||||
|
|
||||||
Reference in New Issue
Block a user