DockerComposeCollection

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

docker-compose.yml (886B)


      1 version: "3"
      2 
      3 networks:
      4   gitea:
      5     external: false
      6 
      7 services:
      8   server:
      9     image: docker.gitea.com/gitea:1.23.5
     10     container_name: gitea
     11     environment:
     12       - USER_UID=1000
     13       - USER_GID=1000
     14       - GITEA__database__DB_TYPE=postgres
     15       - GITEA__database__HOST=db:5432
     16       - GITEA__database__NAME=gitea
     17       - GITEA__database__USER=gitea
     18       - GITEA__database__PASSWD=gitea
     19     restart: always
     20     networks:
     21       - gitea
     22     volumes:
     23       - ./gitea:/data
     24       - /etc/timezone:/etc/timezone:ro
     25       - /etc/localtime:/etc/localtime:ro
     26     ports:
     27       - "3000:3000"
     28       - "222:22"
     29     depends_on:
     30       - db
     31 
     32   db:
     33     image: docker.io/library/postgres:14
     34     restart: always
     35     environment:
     36       - POSTGRES_USER=gitea
     37       - POSTGRES_PASSWORD=gitea
     38       - POSTGRES_DB=gitea
     39     networks:
     40       - gitea
     41     volumes:
     42       - ./postgres:/var/lib/postgresql/data