rubyforgood/casa

View on GitHub
.devcontainer/docker-compose.yml

Summary

Maintainability
Test Coverage
version: "3.8"

services:
  app:
    build:
      context: ..
      dockerfile: .devcontainer/Dockerfile

    volumes:
      - ../..:/workspaces:cached

    # Overrides default command so things don't shut down after the process ends.
    command: sleep infinity
    networks:
      - default

  postgres:
    image: postgres:latest
    restart: always
    networks:
      - default
    volumes:
      - postgres-data:/var/lib/postgresql/data
    environment:
      POSTGRES_USER: postgres
      POSTGRES_DB: postgres
      POSTGRES_PASSWORD: postgres
    # Note that these ports are ignored by the devcontainer.
    # Instead, the ports are specified in .devcontainer/devcontainer.json.
    # ports:
    #  - "5432:5432"
volumes:
  postgres-data: