docker-compose.yaml 561 Bytes
Newer Older
Anca Iordache's avatar
Anca Iordache committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
version: '3.7'
services:
  gitea:
    image: gitea/gitea:latest
    environment:
      - DB_TYPE=postgres
      - DB_HOST=db:5432
      - DB_NAME=gitea
      - DB_USER=gitea
      - DB_PASSWD=gitea
    restart: always
    volumes:
      - git_data:/data
    ports:
15
      - 3000:3000
Anca Iordache's avatar
Anca Iordache committed
16
17
18
19
20
21
22
23
24
  db:
    image: postgres:alpine
    environment:
      - POSTGRES_USER=gitea
      - POSTGRES_PASSWORD=gitea
      - POSTGRES_DB=gitea
    restart: always
    volumes:
      - db_data:/var/lib/postgresql/data
25
26
    expose:
      - 5432
Anca Iordache's avatar
Anca Iordache committed
27
28
29
30
31
volumes:
  db_data:
  git_data:
  
  
32