version: '3' services: dynamicweb2: build: context: . ports: - "8000:8000" volumes: - dynamicweb2_vol:/app depends_on: - db env_file: - .env nginx: build: context: ./nginx ports: - "80:80" depends_on: - dynamicweb2 db: image: postgres:latest environment: POSTGRES_DB: app POSTGRES_USER: app POSTGRES_PASSWORD: uuiowmm3AS volumes: - postgres_data:/var/lib/postgresql/data - postgres_socket:/var/run/postgresql volumes: dynamicweb2_vol: postgres_data: postgres_socket: