forked from govigilant/vigilant
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
95 lines (89 loc) · 2.28 KB
/
Copy pathdocker-compose.yml
File metadata and controls
95 lines (89 loc) · 2.28 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
services:
app:
image: ghcr.io/govigilant/vigilant:latest
build:
context: .
volumes:
- type: bind
source: ./.env
target: /app/.env
- ./storage:/app/storage
- public:/app/public
restart: always
working_dir: /app
networks:
- vigilant
healthcheck:
test: curl --fail http://localhost || exit 1
interval: 30s
timeout: 10s
retries: 5
depends_on:
mysql:
condition: service_healthy
ports:
- "8000:8000"
horizon:
image: ghcr.io/govigilant/vigilant:latest
volumes:
- type: bind
source: ./.env
target: /app/.env
read_only: true
- ./storage:/app/storage
- public:/app/public
restart: always
working_dir: /app
networks:
- vigilant
entrypoint: ["php", "artisan", "horizon"]
healthcheck:
test: ["CMD", "php", "artisan", "horizon:status"]
interval: 30s
timeout: 10s
start_period: 10s
retries: 3
depends_on:
mysql:
condition: service_healthy
redis:
condition: service_healthy
mysql:
image: mysql:8.0
restart: always
environment:
- MYSQL_DATABASE=vigilant
- MYSQL_ROOT_PASSWORD=password
volumes:
- database:/var/lib/mysql
networks:
- vigilant
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
interval: 10s
timeout: 20s
retries: 10
redis:
image: redis:7
restart: always
volumes:
- redis:/data
networks:
- vigilant
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
lighthouse:
image: ghcr.io/govigilant/lighthouse-server:latest
restart: always
deploy:
resources:
reservations:
memory: 2G
networks:
- vigilant
networks:
vigilant:
volumes:
public:
database:
redis: