version: "3.8" volumes: righttree-postgres-data: name: righttree-postgres-data services: backend: restart: unless-stopped build: context: backend dockerfile: Dockerfile container_name: righttree-backend depends_on: - postgres env_file: .env ports: - "8000:8000" command: bash -c "gunicorn --bind 0.0.0.0:8000 right_tree.wsgi" frontend: build: context: frontend dockerfile: Dockerfile restart: unless-stopped container_name: righttree-frontend ports: - "3000:3000" working_dir: /app command: sh -c "serve -s build" postgres: image: postgis/postgis:13-3.0 restart: unless-stopped container_name: postgres volumes: - righttree-postgres-data:/var/lib/postgresql/data - ./create_database.sql:/docker-entrypoint-initdb.d/create_database.sql ports: - "5432:5432" environment: - POSTGRES_DB=${POSTGRES_DB} - POSTGRES_USER=${POSTGRES_USER} - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}