You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.3 KiB
YAML
59 lines
1.3 KiB
YAML
version: "2"
|
|
|
|
networks:
|
|
gitea:
|
|
external: false
|
|
|
|
services:
|
|
gitea:
|
|
container_name: gitea
|
|
image: gitea/gitea:latest
|
|
environment:
|
|
- USER_UID=1000
|
|
- USER_GID=1000
|
|
- DB_TYPE=postgres
|
|
- DB_HOST=db:5432
|
|
- DB_NAME=gitea
|
|
- DB_USER=gitea
|
|
- DB_PASSWD=<CHANGE_ME>
|
|
restart: always
|
|
networks:
|
|
- gitea
|
|
volumes:
|
|
- /var/hosting/git/gitea:/data
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- /etc/localtime:/etc/localtime:ro
|
|
ports:
|
|
- "172.17.0.1:8080:3000"
|
|
- "127.0.0.1:2222:22"
|
|
depends_on:
|
|
- db
|
|
|
|
db:
|
|
container_name: db
|
|
image: postgres:9.6
|
|
restart: always
|
|
environment:
|
|
- POSTGRES_USER=gitea
|
|
- POSTGRES_PASSWORD=<CHANGE_ME>
|
|
- POSTGRES_DB=gitea
|
|
networks:
|
|
- gitea
|
|
volumes:
|
|
- /var/hosting/git/postgres:/var/lib/postgresql/data
|
|
|
|
haproxy:
|
|
container_name: lb
|
|
image: 'tomdess/haproxy-certbot:latest'
|
|
environment:
|
|
- CERTS=your.domain.name
|
|
- EMAIL=you@your.domain.name
|
|
volumes:
|
|
- '/var/hosting/git/letsencrypt:/etc/letsencrypt'
|
|
- '/var/hosting/git/haproxy/haproxy.cfg:/etc/haproxy/haproxy.cfg'
|
|
ports:
|
|
- '80:80'
|
|
- '443:443'
|
|
depends_on:
|
|
- gitea
|