51 lines
994 B
YAML
51 lines
994 B
YAML
---
|
|
# DOCKER_HOST=192.168.2.41:2376 docker-compose up -d
|
|
# DOCKER_HOST=dkhost:2376 docker stack deploy -c docker-compose.yml gitea
|
|
|
|
version: '3.4'
|
|
services:
|
|
|
|
app:
|
|
image: "gitea/gitea:latest"
|
|
volumes:
|
|
- /var/lib/gitea:/data
|
|
ports:
|
|
- "10022:22"
|
|
- "10080:3000"
|
|
|
|
deploy:
|
|
mode: replicated
|
|
replicas: 1
|
|
restart_policy:
|
|
condition: any
|
|
delay: "5s"
|
|
max_attempts: 3
|
|
update_config:
|
|
parallelism: 1
|
|
delay: 2s
|
|
order: start-first
|
|
labels:
|
|
net.xai-corp.sslproxy.description: proxy ssl calls to non ssl containers
|
|
resources:
|
|
limits:
|
|
cpus: '0.5'
|
|
memory: 96M
|
|
|
|
logging:
|
|
driver: fluentd
|
|
options:
|
|
fluentd-address: "logs.xai-corp.net:24224"
|
|
fluentd-async-connect: 'true'
|
|
tag: gitea
|
|
|
|
networks:
|
|
default:
|
|
external:
|
|
name: ingress
|
|
ingress:
|
|
external:
|
|
name: ingress
|
|
prod:
|
|
external:
|
|
name: prod
|