services: web: build: . command: python manage.py runserver 0.0.0.0:8000 volumes: - .:/usr/mamweb-docker ports: - 8000:8000 depends_on: - db db: image: postgres:13-bullseye volumes: - postgres_data:/var/lib/postgresql/data/ environment: - POSTGRES_USER=mam-web - POSTGRES_PASSWORD=RoEGG5g7&b # Random generated string corresponding with Django settings - POSTGRES_DB=mam_docker volumes: postgres_data: