Update docker-compose.dev.yml: Flame, Nginx, Nextcloud, HedgeDoc improvements

This commit is contained in:
2025-05-27 04:07:05 -05:00
parent 0b6f55ea48
commit a251bdfab3
+36 -10
View File
@@ -63,8 +63,8 @@ services:
image: mailhog/mailhog:latest image: mailhog/mailhog:latest
container_name: mailhog_dev container_name: mailhog_dev
ports: ports:
- "1025:1025" # SMTP port - "1025:1025"
- "8025:8025" # Web UI port - "8025:8025"
networks: networks:
- fold-network - fold-network
@@ -76,6 +76,11 @@ services:
volumes: volumes:
- ./volumes/trilium:/home/node/trilium-data - ./volumes/trilium:/home/node/trilium-data
restart: unless-stopped restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/api/health-check"]
interval: 10s
timeout: 5s
retries: 3
networks: networks:
- fold-network - fold-network
@@ -90,8 +95,14 @@ services:
- CMD_DOMAIN=localhost:3030 - CMD_DOMAIN=localhost:3030
- CMD_PROTOCOL_USESSL=false - CMD_PROTOCOL_USESSL=false
- CMD_DB_URL=sqlite:/hedgedoc/public/uploads/hedgedoc.db - CMD_DB_URL=sqlite:/hedgedoc/public/uploads/hedgedoc.db
- CMD_SESSION_SECRET=your-secret-here
user: "1000:1000" user: "1000:1000"
restart: unless-stopped restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/_health"]
interval: 10s
timeout: 5s
retries: 3
networks: networks:
- fold-network - fold-network
@@ -112,6 +123,11 @@ services:
- NEXTCLOUD_ADMIN_PASSWORD=admin_password - NEXTCLOUD_ADMIN_PASSWORD=admin_password
- NEXTCLOUD_TRUSTED_DOMAINS=localhost - NEXTCLOUD_TRUSTED_DOMAINS=localhost
- NEXTCLOUD_DEFAULT_LANGUAGE=en - NEXTCLOUD_DEFAULT_LANGUAGE=en
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/status.php"]
interval: 10s
timeout: 5s
retries: 3
restart: unless-stopped restart: unless-stopped
networks: networks:
- fold-network - fold-network
@@ -207,14 +223,13 @@ services:
- "5005:5005" - "5005:5005"
volumes: volumes:
- ./volumes/flame:/app/data - ./volumes/flame:/app/data
- ./.env.dev:/app/.env:ro
environment: environment:
- FLAME_PASSWORD=${FLAME_PASSWORD} - FLAME_PASSWORD=${FLAME_PASSWORD}
healthcheck: healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5005/health"] test: ["CMD", "curl", "-f", "http://localhost:5005/health"]
interval: 10s interval: 10s
timeout: 5s timeout: 5s
retries: 3 retries: 5
cap_drop: cap_drop:
- ALL - ALL
cap_add: cap_add:
@@ -234,12 +249,23 @@ services:
- ./nginx/dev/default.conf:/etc/nginx/conf.d/default.conf:ro - ./nginx/dev/default.conf:/etc/nginx/conf.d/default.conf:ro
- ./volumes/logs:/var/log/nginx - ./volumes/logs:/var/log/nginx
depends_on: depends_on:
- ghost flame_dashboard:
- forgejo condition: service_healthy
- flame_dashboard ghost:
- trilium condition: service_started
- hedgedoc forgejo:
- nextcloud condition: service_started
trilium:
condition: service_healthy
hedgedoc:
condition: service_healthy
nextcloud:
condition: service_started
healthcheck:
test: ["CMD", "nginx", "-t"]
interval: 10s
timeout: 5s
retries: 3
networks: networks:
- fold-network - fold-network
restart: unless-stopped restart: unless-stopped