Commit initial files from server to repo
This commit is contained in:
52
docker-compose.yml
Normal file
52
docker-compose.yml
Normal file
@@ -0,0 +1,52 @@
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
|
||||
db:
|
||||
image: postgres:14-alpine
|
||||
restart: always
|
||||
#environment:
|
||||
#- POSTGRES_USER=${POSTGRES_USER}
|
||||
#- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||
#- POSTGRES_DB=${POSTGRES_DB}
|
||||
networks:
|
||||
- default
|
||||
volumes:
|
||||
- ./data/pgsql:/var/lib/postgresql/data
|
||||
|
||||
gitea:
|
||||
image: gitea/gitea:latest
|
||||
# container_name: gitea
|
||||
environment:
|
||||
- USER_UID=${GITEA_UID}
|
||||
- USER_GID=${GITEA_GID}
|
||||
- GITEA__database__DB_TYPE=postgres
|
||||
- GITEA__database__HOST=db:5432
|
||||
- GITEA__database__NAME=${POSTGRES_DB}
|
||||
- GITEA__database__USER=${POSTGRES_USER}
|
||||
- GITEA__database__PASSWD=${POSTGRES_PASSWORD}
|
||||
restart: always
|
||||
networks:
|
||||
- default
|
||||
- proxy
|
||||
volumes:
|
||||
- ./data/gitea:/data
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
# ports:
|
||||
# - "3000:3000"
|
||||
# - "2221:22"
|
||||
depends_on:
|
||||
- db
|
||||
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.http.routers.gitea.rule=Host(`gitea.example.com`)
|
||||
- traefik.http.routers.gitea.tls.certResolver=le
|
||||
- traefik.http.routers.gitea.service=gitea
|
||||
- traefik.http.services.gitea.loadbalancer.server.port=3000
|
||||
- traefik.docker.network=proxy
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
external: true
|
||||
Reference in New Issue
Block a user