Files
penracourses/docker/docker-compose.yml
T
2025-02-24 16:57:37 +00:00

39 lines
938 B
YAML

services:
redis:
image: redis:7.4.2-alpine
expose:
- 6379
volumes:
- ./redis/redis.conf:/usr/local/etc/redis/redis.conf
command: ["redis-server", "/usr/local/etc/redis/redis.conf"]
web:
build: ./rad
command: python manage.py runserver 0.0.0.0:8000
#command: pip install -r requirements.txt
volumes:
- ./rad/:/usr/src/rad/
- ../rts/:/usr/src/rad/rts
- ../Viewers/platform/app/dist/:/usr/src/rad/viewer
- ./backups:/usr/src/backups
- ./media:/usr/src/media
- ./static:/usr/src/static
ports:
- 8000:8000
- 3459:3459
env_file:
- ./.env.dev
db:
image: postgres:14.2-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=django
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=rad
cache:
image: memcached
ports:
- 11211:11211
volumes:
postgres_data: