Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- services:
- proxy:
- image: gkg0139/baemon-proxy-server
- ports:
- - "80:80"
- - "443:443"
- networks:
- - services-network
- restart: unless-stopped
- depends_on:
- - frontend
- - backend
- frontend:
- image: gkg0139/baemon-frontend
- networks:
- - services-network
- restart: unless-stopped
- healthcheck:
- test: ["CMD-SHELL", "curl -f http://localhost || exit 1"]
- interval: 30s
- timeout: 10s
- retries: 5
- backend:
- image: gkg0139/baemon-backend
- environment:
- - MYSQL_HOST=db
- - MYSQL_PASSWORD=86Iojkiyd
- networks:
- - db-network
- - services-network
- restart: unless-stopped
- depends_on:
- - db
- healthcheck:
- test: ["CMD-SHELL", "curl -f http://localhost || exit 1"]
- interval: 30s
- timeout: 10s
- retries: 5
- watchtower:
- image: containrrr/watchtower
- volumes:
- - /var/run/docker.sock:/var/run/docker.sock
- - /root/.docker/config.json:/config.json
- command: --interval 60 --cleanup
- restart: unless-stopped
- environment:
- WATCHTOWER_NOTIFICATION_REPORT: "true"
- WATCHTOWER_NOTIFICATION_URL: >
- discord://lHj42FGSPfkziC3v6MmkHz-1Zio7h409hpFV3iiw4WdVdfhSY9AIqWlrFCKH6iNBWdTo@1234089000151683083
- WATCHTOWER_NOTIFICATION_TEMPLATE: |
- {{- if .Report -}}
- {{- with .Report -}}
- {{- if ( or .Updated .Failed ) -}}
- {{len .Scanned}} Scanned, {{len .Updated}} Updated, {{len .Failed}} Failed
- {{- range .Updated}}
- - {{.Name}} ({{.ImageName}}): {{.CurrentImageID.ShortID}} updated to {{.LatestImageID.ShortID}}
- {{- end -}}
- {{- range .Fresh}}
- - {{.Name}} ({{.ImageName}}): {{.State}}
- {{- end -}}
- {{- range .Skipped}}
- - {{.Name}} ({{.ImageName}}): {{.State}}: {{.Error}}
- {{- end -}}
- {{- range .Failed}}
- - {{.Name}} ({{.ImageName}}): {{.State}}: {{.Error}}
- {{- end -}}
- {{- end -}}
- {{- end -}}
- {{- else -}}
- {{range .Entries -}}{{.Message}}{{"\n"}}{{- end -}}
- {{- end -}}
- networks:
- services-network:
- name: services-network
- db-network:
- name: db-network
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement