Changed from using networks to links and basic formatting changes
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
version: '2'
|
||||
services:
|
||||
|
||||
services:
|
||||
nextcloud:
|
||||
image: nextcloud:stable-apache
|
||||
depends_on: # Hopefully one day I'll upgrade to a rancher version that actually makes use of this. Here just for a future reminder.
|
||||
- mysql
|
||||
dns:
|
||||
- 1.1.1.1
|
||||
- 1.0.0.1
|
||||
@@ -16,7 +14,6 @@ services:
|
||||
NEXTCLOUD_ADMIN_USER: ${NC_ADMIN}
|
||||
NEXTCLOUD_ADMIN_PASSWORD: ${NC_ADMIN_PASS}
|
||||
labels:
|
||||
# io.rancher.container.hostname_override: container_name
|
||||
io.rancher.container.pull_image: always
|
||||
{{- if (.Values.HOST_LABEL)}}
|
||||
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
|
||||
@@ -29,17 +26,16 @@ services:
|
||||
traefik.backend: Nextcloud
|
||||
traefik.frontend.entryPoints: http,https
|
||||
traefik.docker.network: public
|
||||
links:
|
||||
- mysql
|
||||
networks:
|
||||
- default
|
||||
- nextcloud-nfs-net
|
||||
- public
|
||||
- public-proxy
|
||||
ports:
|
||||
- "${HOST_HTTP_PORT}:80"
|
||||
restart: on-failure
|
||||
volumes:
|
||||
- Application:/var/www/html
|
||||
- UserData:/var/www/html/data
|
||||
|
||||
mysql:
|
||||
image: mysql:5
|
||||
dns:
|
||||
@@ -55,16 +51,14 @@ services:
|
||||
{{- if (.Values.HOST_LABEL)}}
|
||||
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
|
||||
{{- end}}
|
||||
networks:
|
||||
- nextcloud-nfs-net
|
||||
restart: on-failure
|
||||
volumes:
|
||||
- Database:/var/lib/mysql
|
||||
|
||||
networks:
|
||||
nextcloud-nfs-net:
|
||||
public:
|
||||
public-proxy:
|
||||
external: true
|
||||
|
||||
volumes:
|
||||
Application:
|
||||
driver: rancher-nfs
|
||||
|
||||
Reference in New Issue
Block a user