-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
64 lines (61 loc) · 1.71 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
53
54
55
56
57
58
59
60
61
62
63
64
services:
naarad:
image: metakgporg/naarad
container_name: naarad
build:
context: .
dockerfile: Dockerfile
environment:
- TZ=IST
env_file:
- .env
networks:
metaploy-network:
aliases:
- naarad
volumes:
- nginx-config-volume:/etc/nginx/sites-enabled
- naarad-cache:/var/cache/ntfy
- naarad-auth:/var/lib/ntfy
- ./server.yml:/etc/ntfy/server.yml
healthcheck:
test:
[
"CMD-SHELL",
"wget -q --tries=1 http://localhost:8000/v1/health -O - | grep -Eo '\"healthy\"\\s*:\\s*true' || exit 1",
]
interval: 60s
timeout: 10s
retries: 3
start_period: 40s
restart: unless-stopped
naarad-api:
image: metakgporg/naarad-api
container_name: naarad-api
build:
context: backend/
dockerfile: Dockerfile
environment:
- TZ=IST
env_file:
- .env
networks:
metaploy-network:
aliases:
- naarad-api
volumes:
- nginx-config-volume:/etc/nginx/sites-enabled
- naarad-auth:/var/lib/ntfy
- ./backend/credentials.json:/app/credentials.json
- ./backend/token.json:/app/token.json
restart: unless-stopped
networks:
metaploy-network:
external: true
name: metaploy-network
volumes:
nginx-config-volume:
external: true
name: metaploy-nginx-config-volume
naarad-cache:
naarad-auth: