48 lines
1018 B
YAML
48 lines
1018 B
YAML
version: "3.8"
|
|
|
|
services:
|
|
# --- Gitea Service ---
|
|
gitea:
|
|
image: gitea/gitea:1.22.0
|
|
environment:
|
|
USER_UID: 1000
|
|
USER_GID: 1000
|
|
GITEA__database__DB_TYPE: postgres
|
|
GITEA__database__HOST: postgres-db_postgres-db:5432
|
|
GITEA__database__NAME: gitea
|
|
GITEA__database__USER: postgres
|
|
GITEA__database__PASSWD: 98836
|
|
GITEA__server__ROOT_URL: http://192.168.1.105:3000/
|
|
GITEA__server__HTTP_PORT: 3000
|
|
volumes:
|
|
- gitea_data:/data
|
|
ports:
|
|
- target: 3000
|
|
published: 3000
|
|
protocol: tcp
|
|
mode: host
|
|
- target: 22
|
|
published: 222
|
|
protocol: tcp
|
|
mode: host
|
|
networks:
|
|
- postgres_network
|
|
deploy:
|
|
replicas: 1
|
|
restart_policy:
|
|
condition: on-failure
|
|
placement:
|
|
constraints:
|
|
- node.labels.platform == prod
|
|
update_config:
|
|
parallelism: 1
|
|
order: start-first
|
|
|
|
volumes:
|
|
gitea_data:
|
|
|
|
networks:
|
|
postgres_network:
|
|
external: true
|
|
|