mirror of
https://github.com/nocodb/nocodb.git
synced 2026-02-01 23:48:33 +00:00
fix: add missing dependency service and volume for worker
Signed-off-by: Pranav C <pranavxc@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user