Skip to content

Commit

Permalink
replace bind mounts by named volumes and remove Z SELinux option
Browse files Browse the repository at this point in the history
  • Loading branch information
julien4215 committed Oct 21, 2024
1 parent c4d6d01 commit 69032a1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
7 changes: 5 additions & 2 deletions docker-compose-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,17 @@ services:
ports:
- 5432:5432
volumes:
- hyperion_db_data:/var/lib/postgresql/data
- postgres_data_dev:/var/lib/postgresql/data

hyperion-redis:
image: redis
container_name: hyperion-redis-dev
restart: unless-stopped
ports:
- 6379:6379
volumes:
- redis_data_dev:/data

volumes:
hyperion_db_data:
postgres_data_dev:
redis_data_dev:
17 changes: 12 additions & 5 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ services:
POSTGRES_DB: ${POSTGRES_DB}
PGTZ: ${POSTGRES_TZ}
volumes:
- ./hyperion_db_data:/var/lib/postgresql/data:Z
- postgres_data:/var/lib/postgresql/data

hyperion-redis:
image: redis
Expand All @@ -23,6 +23,8 @@ services:
command: redis-server --requirepass ${REDIS_PASSWORD}
environment:
- REDIS_PASSWORD=${REDIS_PASSWORD}
volumes:
- redis_data:/data

hyperion-app:
image: hyperion-app
Expand All @@ -36,7 +38,12 @@ services:
ports:
- 8000:8000
volumes:
- ./logs:/app/logs:Z
- ./data:/app/data:Z
- ./.env:/app/.env:Z
- ./firebase.json:/app/firebase.json:Z
- app_logs:/hyperion/logs
- app_data:/hyperion/data
- ./.env:/hyperion/.env

volumes:
postgres_data:
redis_data:
app_data:
app_logs:

0 comments on commit 69032a1

Please sign in to comment.