version: '3' services: db: image: 'postgres' environment: - POSTGRES_PASSWORD=skillbox - POSTGRES_USER=skillbox - POSTGRES_DB=skillbox volumes: - helloclassdb:/var/lib/postgresql/data web: build: . command: python manage.py runserver 0.0.0.0:8000 volumes: - "./server:/app" ports: - "8000:8000" depends_on: - db volumes: helloclassdb: