add slirp4netns network_mode option
This commit is contained in:
parent
cb329d73ef
commit
41f6ade6c2
@ -5,6 +5,7 @@ services:
|
|||||||
# Note: Check the recommend version here: https://docs.nextcloud.com/server/latest/admin_manual/installation/system_requirements.html#server
|
# Note: Check the recommend version here: https://docs.nextcloud.com/server/latest/admin_manual/installation/system_requirements.html#server
|
||||||
image: postgres:alpine
|
image: postgres:alpine
|
||||||
hostname: db
|
hostname: db
|
||||||
|
network_mode: slirp4netns
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- db:/var/lib/postgresql/data:Z
|
- db:/var/lib/postgresql/data:Z
|
||||||
@ -20,6 +21,7 @@ services:
|
|||||||
app:
|
app:
|
||||||
image: nextcloud:fpm-alpine
|
image: nextcloud:fpm-alpine
|
||||||
hostname: app
|
hostname: app
|
||||||
|
network_mode: slirp4netns
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- nextcloud:/var/www/html:z
|
- nextcloud:/var/www/html:z
|
||||||
@ -39,6 +41,7 @@ services:
|
|||||||
web:
|
web:
|
||||||
image: nginx:alpine-slim
|
image: nginx:alpine-slim
|
||||||
hostname: web
|
hostname: web
|
||||||
|
network_mode: slirp4netns
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
# https://docs.nextcloud.com/server/latest/admin_manual/installation/nginx.html
|
# https://docs.nextcloud.com/server/latest/admin_manual/installation/nginx.html
|
||||||
@ -58,7 +61,7 @@ services:
|
|||||||
cron:
|
cron:
|
||||||
image: nextcloud:fpm-alpine
|
image: nextcloud:fpm-alpine
|
||||||
hostname: cron
|
hostname: cron
|
||||||
restart: always
|
network_mode: slirp4netns
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- nextcloud:/var/www/html:z
|
- nextcloud:/var/www/html:z
|
||||||
@ -74,6 +77,7 @@ services:
|
|||||||
proxy:
|
proxy:
|
||||||
build: ./proxy
|
build: ./proxy
|
||||||
hostname: proxy
|
hostname: proxy
|
||||||
|
network_mode: slirp4netns
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- 8080:80
|
- 8080:80
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user