++ fix network & other
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
services:
|
||||
nginx:
|
||||
image: nginx:1.27-alpine
|
||||
container_name: nextcloud-nginx
|
||||
restart: unless-stopped
|
||||
container_name: ${PROJECT_NAME}-nextcloud-nginx
|
||||
restart: ${RESTART}
|
||||
depends_on:
|
||||
- app
|
||||
- collabora
|
||||
@@ -12,12 +12,12 @@ services:
|
||||
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
|
||||
networks:
|
||||
nextcloud_internal:
|
||||
ipv4_address: 172.30.0.10
|
||||
ipv4_address: ${NGINX_IP_ADDRESS}
|
||||
|
||||
db:
|
||||
image: mariadb:11.4
|
||||
container_name: nextcloud-db
|
||||
restart: unless-stopped
|
||||
container_name: ${PROJECT_NAME}-nextcloud-db
|
||||
restart: ${RESTART}
|
||||
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
|
||||
environment:
|
||||
MYSQL_DATABASE: ${MYSQL_DATABASE}
|
||||
@@ -32,16 +32,16 @@ services:
|
||||
|
||||
redis:
|
||||
image: redis:7-alpine
|
||||
container_name: nextcloud-redis
|
||||
restart: unless-stopped
|
||||
container_name: ${PROJECT_NAME}-nextcloud-redis
|
||||
restart: ${RESTART}
|
||||
command: redis-server --requirepass ${REDIS_PASSWORD}
|
||||
networks:
|
||||
- nextcloud_internal
|
||||
|
||||
app:
|
||||
image: nextcloud:apache
|
||||
container_name: nextcloud-app
|
||||
restart: unless-stopped
|
||||
container_name: ${PROJECT_NAME}-nextcloud-app
|
||||
restart: ${RESTART}
|
||||
depends_on:
|
||||
- db
|
||||
- redis
|
||||
@@ -69,8 +69,8 @@ services:
|
||||
|
||||
collabora:
|
||||
image: collabora/code:latest
|
||||
container_name: collabora
|
||||
restart: unless-stopped
|
||||
container_name: ${PROJECT_NAME}-collabora
|
||||
restart: ${RESTART}
|
||||
expose:
|
||||
- "9980"
|
||||
environment:
|
||||
@@ -94,4 +94,4 @@ networks:
|
||||
driver: bridge
|
||||
ipam:
|
||||
config:
|
||||
- subnet: 172.30.0.0/24
|
||||
- subnet: ${NGINX_NETWORK}
|
||||
|
||||
Reference in New Issue
Block a user