Brijesh's Git Server — k3yst0n3 @ main

docker-compose.yaml (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
services:
  minio:
    container_name: minio
    image: quay.io/minio/minio:latest
    command: server --console-address ":9001" /data
    restart: always
    ports:
      - "9000:9000"
      - "9001:9001"
    expose:
      - "9000"
      - "9001"
    volumes:
      - minio-volume:/data
  postgres:
    container_name: postgres
    image: postgres:alpine
    environment:
      - POSTGRES_USER=${POSTGRES_USER}
      - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
      - POSTGRES_DB=${POSTGRES_DB}
    ports:
      - "5432:5432"
    volumes:
      - postgres-volume:/var/lib/postgresql/data
  # server:
  #   container_name: server
  #   build: .
  #   ports:
  #     - "4000:4000"
  #   depends_on:
  #     - postgres
  #     - minio
  #   volumes:
  #     - .:/usr/src/app
  #   command: air ./cmd/main.go -b 0.0.0.0
  client:
    container_name: client
    build: ./client
    ports:
      - "3000:3000"
    depends_on:
      # - server
      - postgres
      - minio
    environment:
      - DATABASE_URL={DATABASE_URL}
      - NEXT_TELEMETRY_DISABLED=1

volumes:
  minio-volume:
  postgres-volume: