Collection of Docker setups including docker-compose files.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

51 lines
1.1 KiB

version: "3"
networks:
default:
external:
name: webproxy
database:
internal: true
services:
server:
image: gitea/gitea:latest
container_name: gitea
environment:
- USER_UID=1000
- USER_GID=1000
- DB_TYPE=postgres
- DB_HOST=db:5432
- DB_NAME=gitea
- DB_USER=gitea
- DB_PASSWD=gitea
restart: always
networks:
- default
- database
volumes:
- ./gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
labels:
- "traefik.enable=true"
- "traefik.docker.network=webproxy"
- "traefik.web.frontend.rule=Host:gitea.{DOMAIN}"
- "traefik.web.port=3000"
#- "traefik.ssh.frontend.rule=Host:git.{DOMAIN}"
#- "traefik.ssh.port=22"
depends_on:
- db
db:
image: postgres:10
container_name: gitea_db
restart: always
environment:
- POSTGRES_USER=gitea
- POSTGRES_PASSWORD=gitea
- POSTGRES_DB=gitea
networks:
- database
volumes:
- ./postgres:/var/lib/postgresql/data