1
0
2024-10-26_django_devcontai.../.devcontainer/docker-compose.yml

35 lines
771 B
YAML
Raw Normal View History

version: '3.8'
services:
devcontainer:
build:
context: .
dockerfile: Dockerfile
command: sleep infinity
volumes:
- ../..:/workspaces:cached
db:
image: postgres:alpine
2024-10-29 20:43:08 +01:00
restart: always
environment:
POSTGRES_PASSWORD: developer
POSTGRES_USER: developer
cache:
image: redis:alpine
restart: always
pgweb:
image: ghcr.io/sosedoff/pgweb:latest
restart: always
environment:
2024-10-29 20:46:19 +01:00
DATABASE_URL: postgres://developer:developer@db:5432/developer?sslmode=disable
depends_on:
- db
commander:
image: ghcr.io/joeferner/redis-commander:latest
restart: always
environment:
REDIS_HOSTS: Django-Cache:cache:6379:10
PORT: 8080
2024-10-29 20:43:08 +01:00
depends_on:
- cache
user: redis