Spacemacs theme for gitea
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.
 
 

44 lines
1.0 KiB

version: "2"
networks:
gitea:
external: false
services:
server:
image: gitea/gitea:latest
restart: always
networks:
- gitea
ports:
- "8080:8080"
- "127.0.0.1:2221:22"
environment:
- USER_UID=1000
- USER_GID=1000
- DB_TYPE=postgres
- DB_HOST=db:5432
- DB_NAME=gitea
- DB_USER=gitea
- DB_PASSWD=gitea
volumes:
- ./gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- ./ssh/authorized_keys/:/var/lib/gitea/git/.ssh/authorized_keys
db:
image: postgres:11.6-alpine
command: -c ssl=on -c ssl_cert_file=/var/lib/postgresql/server.crt -c ssl_key_file=/var/lib/postgresql/server.key
restart: always
networks:
- gitea
environment:
- POSTGRES_USER=gitea
- POSTGRES_PASSWD=gitea
- POSTGRES_DB=gitea
volumes:
- ./postgres:/var/lib/postgresql/data
- ./certs/server.crt:/var/lib/postgresql/server.crt
- ./certs/server.key:/var/lib/postgresql/server.key