-
-
Notifications
You must be signed in to change notification settings - Fork 111
Expand file tree
/
Copy pathsetup-docker.sh
More file actions
executable file
·23 lines (18 loc) · 823 Bytes
/
setup-docker.sh
File metadata and controls
executable file
·23 lines (18 loc) · 823 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
# Setup script for Docker data directory permissions
echo "Setting up data directory permissions for Docker..."
# Create data directories if they don't exist
mkdir -p data/users
mkdir -p data/checklists
mkdir -p data/notes
mkdir -p cache
# Set proper permissions (matching the Docker container user)
chmod -R 755 data
chown -R 1000:1000 data
# Set proper permissions for cache directory (user 1000:1000 as per docker-compose.yml)
# This is optional - if you don't want cache persistence, comment out the cache volume in docker-compose.yml
chmod -R 755 cache
chown -R 1000:1000 cache
echo "Data and cache directory setup complete!"
echo "Note: Cache directory is optional. If you don't want cache persistence, comment out the cache volume in docker-compose.yml"
echo "You can now run: docker compose up -d"