forked from devinsolutions/docker-osticket
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (51 loc) · 1.39 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
version: '3'
services:
osticket-db:
image: mysql:5.7
environment:
- MYSQL_ROOT_PASSWORD=${MY_SQL_ROOT_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
volumes:
- osticket-mysql-data:/var/lib/mysql
networks:
- osticket-internal
healthcheck:
test: "/usr/bin/mysql --user=root --password=$$MYSQL_ROOT_PASSWORD --execute \"SHOW DATABASES;\""
interval: 2s
timeout: 20s
retries: 10
osticket:
image: fdmieng/dockerosticket:v1.18.1
env_file:
- stack.env
restart: on-failure
depends_on:
osticket-db:
condition: service_healthy
healthcheck:
test: curl --fail http://localhost || exit 1
interval: 60s
retries: 5
start_period: 20s
timeout: 10s
networks:
- osticket-internal
- osticket-external
cloudflared:
restart: unless-stopped
depends_on:
- osticket
image: cloudflare/cloudflared
networks:
- osticket-external
command: tunnel run
environment:
- TUNNEL_TOKEN=${CLOUDFLARE_TUNNEL_TOKEN}
networks:
osticket-internal:
internal: true
osticket-external:
volumes:
osticket-mysql-data: