fix: add missing dependency service and volume for worker

Signed-off-by: Pranav C <pranavxc@gmail.com>
This commit is contained in:
Pranav C
2025-01-01 16:55:56 +05:30
parent 2af9a6e0ed
commit e369c6196b

View File

@@ -753,12 +753,27 @@ EOF
env_file: docker.env
environment:
- NC_WORKER_CONTAINER=true
depends_on:
- nocodb
restart: unless-stopped
networks:
- nocodb-network
EOF
if [ -n "$gen_postgres" ] || [ -n "$gen_redis" ] || [ "$gen_redis" ]; then
cat >>"$compose_file" <<EOF
depends_on:
${gen_postgres:+- db}
${gen_redis:+- redis}
${gen_minio:+- minio}
EOF
fi
cat >>"$compose_file" <<EOF
restart: unless-stopped
volumes:
- ./nocodb:/usr/app/data
labels:
- "com.centurylinklabs.watchtower.enable=true"
EOF
fi
if [ "$CONFIG_POSTGRES_SQLITE" = "P" ]; then