name: ft_transcendence services: django: build: srcs/ image: django networks: - network ports: - "8000:8000" container_name: django restart: always env_file: .env depends_on: - db db: image: postgres volumes: - db:/var/lib/postgresql/data networks: - network container_name: db restart: always env_file: .env volumes: db: networks: network: driver: bridge