GitFOSS
7506cc5 (parent dcaf526)12/10/2023, 12:16:03 AM
.yml
YAML
(text/x-yaml)
version: "3"
services:
  gitfoss_db:
    container_name: gitfoss_db
    image: postgres:14
    environment:
      - POSTGRES_PASSWORD=postgres
      - POSTGRES_DB=postgres
    ports:
      - 5432:5432
    volumes:
      - ./data/postgres_data:/var/lib/postgresql/data
  web:
    build:
      context: .
      dockerfile: Dockerfile
      args:
        - HOST=0.0.0.0
        - PORT=1337
    container_name: gitfoss_web
    depends_on:
      - gitfoss_db
    environment:
      - COOKIE_NAME=gitfoss_ssid
      - COOKIE_SECRET=gitfoss-cookie-secret
      - DATABASE_URL=postgresql://postgres:postgres@gitfoss_db:5432/gitfoss_local?sslmode=disable&connection_limit=3
      - DEPLOYMENT_DOMAIN=local-app.localhost
      - DEPLOYMENT_SCHEME=http
      - GIT_REPOSITORIES_ROOT=/var/lib/gitfoss/repos
    ports:
      - 1337:1337
    volumes:
      - ./data/gitfoss_repos:/var/lib/gitfoss/repos