Manifests/gogs/gogs.yml
2025-06-18 18:03:46 +03:00

26 lines
739 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

version: '3.8' # Swarm için daha yeni bir versiyon kullanmak daha iyidir
services:
gogs:
image: gogs/gogs:latest
container_name: gogs # Swarm modunda container_name genellikle göz ardı edilir
ports:
- "3000:3000"
volumes:
- gogs_data:/data
environment:
- GOGS_CUSTOM=/data/gogs
networks:
- postgres_network
deploy:
replicas: 1 # Gogs için tek bir replika genellikle yeterlidir
placement:
constraints:
- node.labels.platform == dev # Gogs'un manager düğümde çalışmasını sağlayabilirsiniz
volumes:
gogs_data:
driver: local # Varsayılan olarak host makine üzerinde bir volume oluşturur
networks:
postgres_network:
external: true