new manfiests added
This commit is contained in:
parent
cd466f641b
commit
43f0fc45f6
1
avente-crm/README.md
Normal file
1
avente-crm/README.md
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
docker stack deploy -c aventecrm.yml avente-crm
|
||||||
39
avente-crm/aventecrm.yml
Normal file
39
avente-crm/aventecrm.yml
Normal file
|
|
@ -0,0 +1,39 @@
|
||||||
|
version: "3.8"
|
||||||
|
|
||||||
|
services:
|
||||||
|
avente_crm:
|
||||||
|
image: ghcr.io/emrekirman/avente_crm:latest
|
||||||
|
networks:
|
||||||
|
- traefik-public
|
||||||
|
- avente_internal
|
||||||
|
- redis_redis_net
|
||||||
|
- postgres_network
|
||||||
|
deploy:
|
||||||
|
replicas: 1
|
||||||
|
restart_policy:
|
||||||
|
condition: on-failure
|
||||||
|
placement:
|
||||||
|
constraints:
|
||||||
|
- node.labels.platform == prod
|
||||||
|
update_config:
|
||||||
|
parallelism: 1
|
||||||
|
order: start-first
|
||||||
|
labels:
|
||||||
|
- traefik.enable=true
|
||||||
|
- traefik.http.routers.aventecrm.rule=Host(`aventecrm.emrekirman.xyz`)
|
||||||
|
- traefik.http.routers.aventecrm.entrypoints=websecure
|
||||||
|
- traefik.http.routers.aventecrm.tls.certresolver=myresolver
|
||||||
|
- traefik.http.services.aventecrm.loadbalancer.server.port=8080
|
||||||
|
- traefik.http.routers.aventecrm.service=aventecrm
|
||||||
|
networks:
|
||||||
|
postgres_network:
|
||||||
|
external: true
|
||||||
|
redis_redis_net:
|
||||||
|
external: true
|
||||||
|
traefik-public:
|
||||||
|
external: true
|
||||||
|
avente_internal:
|
||||||
|
driver: overlay
|
||||||
|
attachable: true
|
||||||
|
|
||||||
|
|
||||||
1
gitea/README.md
Normal file
1
gitea/README.md
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
docker stack deploy -c gitea.yml gitea
|
||||||
47
gitea/gitea.yml
Normal file
47
gitea/gitea.yml
Normal file
|
|
@ -0,0 +1,47 @@
|
||||||
|
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: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
|
||||||
|
|
||||||
|
|
@ -13,7 +13,7 @@ services:
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: on-failure # Hata durumunda yeniden başlat
|
condition: on-failure # Hata durumunda yeniden başlat
|
||||||
delay: 5s
|
delay: 5s
|
||||||
max_attempts: 3
|
max_attempts: 10
|
||||||
window: 120s
|
window: 120s
|
||||||
placement:
|
placement:
|
||||||
constraints:
|
constraints:
|
||||||
|
|
@ -34,4 +34,4 @@ networks:
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
mongo_data:
|
mongo_data:
|
||||||
driver: local # Varsayılan olarak düğümde kalıcı depolama
|
driver: local # Varsayılan olarak düğümde kalıcı depolama
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ services:
|
||||||
failure_action: rollback
|
failure_action: rollback
|
||||||
placement:
|
placement:
|
||||||
constraints:
|
constraints:
|
||||||
- node.labels.platform == dev # Yalnızca dev etiketli node'a yerleşsin
|
- node.labels.platform == prod # Yalnızca dev etiketli node'a yerleşsin
|
||||||
# Eğer Traefik kullanıyorsan (opsiyonel), şu label'ları açabilirsin:
|
# Eğer Traefik kullanıyorsan (opsiyonel), şu label'ları açabilirsin:
|
||||||
# labels:
|
# labels:
|
||||||
# - "traefik.enable=true"
|
# - "traefik.enable=true"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user