Skip to content

Commit

Permalink
Merge pull request #260 from OleksandrKucherenko/AB0001-developer-env…
Browse files Browse the repository at this point in the history
…ironment

[AB-0001]: added web ui for redis docker-compose.dev.yaml
  • Loading branch information
jamesread authored Oct 9, 2024
2 parents 208f522 + 0044729 commit 76cc074
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 7 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,11 @@ Thumbs.db
# Vim files
**/*.swp
**/*.swo

# Temporary files
*.orig
*.~*~
*.tsbuildinfo

# ignore Secrets folder
.secrets/
33 changes: 26 additions & 7 deletions docker-compose.dev.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
services:
postiz-postgres:
image: postgres:14.5
# ref: https://hub.docker.com/_/postgres
image: postgres:17-alpine # 17.0
container_name: postiz-postgres
restart: always
environment:
Expand All @@ -13,8 +14,18 @@ services:
- 5432:5432
networks:
- postiz-network
postiz-redis:
# ref: https://hub.docker.com/_/redis
image: redis:7-alpine # 7.4.0
container_name: postiz-redis
restart: always
ports:
- 6379:6379
networks:
- postiz-network
postiz-pg-admin:
image: dpage/pgadmin4
# ref: https://hub.docker.com/r/dpage/pgadmin4/tags
image: dpage/pgadmin4:latest
container_name: postiz-pg-admin
restart: always
ports:
Expand All @@ -24,14 +35,22 @@ services:
PGADMIN_DEFAULT_PASSWORD: admin
networks:
- postiz-network
postiz-redis:
image: redis:7.2
container_name: postiz-redis
restart: always
postiz-redisinsight:
# ref: https://hub.docker.com/r/redis/redisinsight
image: redis/redisinsight:latest
container_name: postiz-redisinsight
links:
- postiz-redis
ports:
- 6379:6379
- "5540:5540"
volumes:
- redisinsight:/data
networks:
- postiz-network
restart: always

volumes:
redisinsight:
postgres-volume:
external: false

Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"dev:backend": "npx nx run backend:serve:development",
"dev:workers": "npx nx run workers:serve:development",
"dev:cron": "npx nx run cron:serve:development",
"dev:docker": "docker compose -f ./docker-compose.dev.yaml up -d",
"start:prod": "node dist/apps/backend/main.js",
"start:prod:frontend": "nx run frontend:serve:production",
"start:prod:workers": "node dist/apps/workers/main.js",
Expand Down Expand Up @@ -197,5 +198,8 @@
"typescript": "5.5.4",
"vite": "^5.0.0",
"vitest": "1.6.0"
},
"volta": {
"node": "20.17.0"
}
}

0 comments on commit 76cc074

Please sign in to comment.