version: '2' services: db: image: postgres:9.5 volumes: - postgresql:/var/lib/postgresql/data backend: build: ./backend expose: - '8000' depends_on: - db volumes: - ./backend:/backend environment: DATABASE_ENGINE: 'django.db.backends.postgresql' DATABASE_NAME: 'postgres' DATABASE_USER: 'postgres' DATABASE_PASSWORD: '' DATABASE_HOST: 'db' DATABASE_PORT: '5432' command: python manage.py runserver 0.0.0.0:8000 frontend: build: ./frontend volumes: - ./frontend:/frontend - node_modules:/frontend/node_modules command: npm run dev nginx: build: ./nginx ports: - '80:80' - '443:443' volumes: - ./nginx/ssl:/certificates volumes_from: - backend links: - backend - frontend environment: - DOMAIN=localhost volumes: postgresql: node_modules: