Skip to content

Commit

Permalink
refactor(docker-compose): make db and redis use user 1000:1000
Browse files Browse the repository at this point in the history
  • Loading branch information
nicotsx committed Feb 6, 2024
1 parent 0ed0149 commit 3b8ddaf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/assets/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,15 @@ services:
- ${NGINX_PORT_SSL:-443}:443
command: --providers.docker
volumes:
- ./traefik:/root/.config
- ./traefik:/etc/traefik
- ./traefik/shared:/shared
networks:
- tipi_main_network
- socket_proxy

tipi-db:
container_name: tipi-db
user: 1000:1000
image: postgres:14
restart: unless-stopped
stop_grace_period: 1m
Expand All @@ -59,6 +60,7 @@ services:

tipi-redis:
container_name: tipi-redis
user: 1000:1000
image: redis:7.2.0
restart: unless-stopped
command: redis-server --requirepass ${REDIS_PASSWORD} --stop-writes-on-bgsave-error no
Expand Down
2 changes: 1 addition & 1 deletion src/utils/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ pub fn ensure_file_permissions() -> Result<(), Error> {
let items = vec![
(
"775",
vec!["state", "apps", "app-data", "logs", "traefik", "repos", "media", "user-config"],
vec!["state", "data", "apps", "app-data", "logs", "traefik", "repos", "media", "user-config"],
),
(
"660",
Expand Down

0 comments on commit 3b8ddaf

Please sign in to comment.