forked from quentintaranpino/nostrcheck-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
54 lines (53 loc) · 1.19 KB
/
compose.yml
File metadata and controls
54 lines (53 loc) · 1.19 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
services:
app:
networks:
- localnet
image: nostrcheckme/nostrcheck-server:testing
depends_on:
- mariadb
- redis
volumes:
- ./files:/usr/src/app/files
- ./resources:/usr/src/app/resources
- ./config:/usr/src/app/config
- ./logs:/usr/src/app/logs
- ./plugins:/usr/src/app/plugins
restart: always
environment:
DATABASE_HOST: "mariadb"
DATABASE_USER: "nostrcheck"
DATABASE_PASSWORD: "nostrcheck"
DATABASE_DATABASE: "nostrcheck"
REDIS_HOST: "redis"
REDIS_PORT: "6379"
REDIS_USER: "default"
REDIS_PASSWORD: ""
command: "npm run start"
ports:
- "3000:3000"
mariadb:
networks:
- localnet
image: mariadb:10
volumes:
- ./data/mysql:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: nostrcheck
MYSQL_DATABASE: nostrcheck
MYSQL_USER: nostrcheck
MYSQL_PASSWORD: nostrcheck
redis:
networks:
- localnet
image: redis:6
volumes:
- ./data/redis:/data
restart: always
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 30s
timeout: 10s
retries: 5
networks:
localnet: