version: '3' services: db: image: postgres restart: always volumes: - ./pgdata:/var/lib/postgresql/data environment: POSTGRES_PASSWORD: c1secret2qbc POSTGRES_DB: weontheme ports: - 5432:5432 django: build: ./docker_django restart: always volumes: - /vagrant:/etc/project ports: - 80:8000 depends_on: - db command: > sh -c "python manage.py runserver 0.0.0.0:8000"