docker compose network2
This commit is contained in:
@@ -2,8 +2,7 @@ services:
|
||||
nextcloud:
|
||||
image: nextcloud:30.0.2
|
||||
restart: always
|
||||
networks:
|
||||
- dokploy-network
|
||||
|
||||
ports:
|
||||
- 80
|
||||
volumes:
|
||||
@@ -15,17 +14,11 @@ services:
|
||||
- MYSQL_USER=nextcloud
|
||||
- MYSQL_PASSWORD=${MYSQL_SECRET_PASSWORD}
|
||||
- OVERWRITEPROTOCOL=https
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.docker.network=dokploy-network"
|
||||
- "traefik.http.routers.${APP_ID}-http.rule=Host(`${NEXTCLOUD_DOMAIN}`)"
|
||||
- "traefik.http.services.${APP_ID}-service.loadbalancer.server.port=80"
|
||||
|
||||
nextcloud_db:
|
||||
image: mariadb
|
||||
restart: always
|
||||
networks:
|
||||
- dokploy-network
|
||||
|
||||
volumes:
|
||||
- nextcloud_db_data:/var/lib/mysql
|
||||
environment:
|
||||
@@ -37,8 +30,3 @@ services:
|
||||
volumes:
|
||||
nextcloud_data:
|
||||
nextcloud_db_data:
|
||||
|
||||
|
||||
networks:
|
||||
dokploy-network:
|
||||
external: true
|
||||
|
||||
Reference in New Issue
Block a user