Skip to content

Commit 77aa2dc

Browse files
committed
add opensupport
1 parent d977ec9 commit 77aa2dc

1 file changed

Lines changed: 70 additions & 0 deletions

File tree

composes-files/opensupports.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# Maintainer: Mickael "PAPAMICA" Asseline
2+
# Update: 2024-08-07
3+
4+
#& type: 3
5+
#& title: OpenSupports
6+
#& description: Ticketing solution
7+
#& note: Website: <a href='https://www.opensupports.com/' target='_blank' rel='noopener'>OpenSupports.com</a>
8+
#& categories: SelfHosted, IT Management, PAPAMICA
9+
#& platform: linux
10+
#& logo: https://avatars.githubusercontent.com/u/26804114?s=280&v=4
11+
12+
#% SERVICE: Name of the service (No spaces or points) [opensupport]
13+
#% DB_PASSWORD: Database user password
14+
#% DATA_LOCATION: Data localization (Example: /apps/service) [/_data/apps]
15+
#% URL: Service URL (Example: service.papamica.fr or service.com)
16+
#% NETWORK: Your Traefik network (Example: proxy) [proxy]
17+
#% TIME_ZONE: Time zone (Example : Europe/Paris) [Europe/Paris]
18+
19+
version: "3.8"
20+
services:
21+
opensupports-db:
22+
image: mariadb
23+
container_name: $SERVICE-db
24+
environment:
25+
- MYSQL_USER=opensupports
26+
- MYSQL_PASSWORD=$DB_PASSWORD
27+
- MYSQL_DATABASE=opensupports
28+
- MYSQL_RANDOM_ROOT_PASSWORD=true
29+
volumes:
30+
- $DATA_LOCATION/$SERVICE/db:/var/lib/mysql
31+
healthcheck:
32+
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
33+
timeout: 20s
34+
retries: 10
35+
networks:
36+
- default
37+
labels:
38+
- "autoupdate=monitor" # https://github.com/PAPAMICA/container-updater
39+
40+
opensupports:
41+
image: 'gamelaster/opensupports:latest'
42+
restart: always
43+
container_name: $SERVICE
44+
environment:
45+
- TIMEZONE=$TIME_ZONE
46+
volumes:
47+
- $DATA_LOCATION/$SERVICE/config:/config
48+
depends_on:
49+
- opensupports-db
50+
healthcheck:
51+
test: curl --fail http://localhost || exit 1
52+
interval: 1m
53+
timeout: 30s
54+
retries: 3
55+
networks:
56+
- default
57+
labels:
58+
- "autoupdate=monitor" # https://github.com/PAPAMICA/container-updater
59+
- "traefik.enable=true"
60+
- "traefik.http.routers.$SERVICE.entrypoints=https"
61+
- "traefik.http.routers.$SERVICE.rule=Host(`$URL`)"
62+
- "traefik.http.routers.$SERVICE.tls=true"
63+
- "traefik.http.routers.$SERVICE.tls.certresolver=http"
64+
- "traefik.http.services.$SERVICE.loadbalancer.server.port=5543"
65+
- "traefik.docker.network=$NETWORK"
66+
67+
networks:
68+
default:
69+
external:
70+
name: $NETWORK

0 commit comments

Comments
 (0)