-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
74 lines (69 loc) · 2.25 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
65
66
67
68
69
70
71
72
73
74
version: "3.7"
services:
node-server:
image: ghcr.io/laxamentumtech/audnexus:latest@sha256:cdb7159b7ec0576e2a00a944709859e8fdf51bdb414aedf48093745abcf162ff
restart: always
environment:
ADP_TOKEN: ${NODE_ADP_TOKEN}
MAX_REQUESTS: ${NODE_MAX_REQUESTS:-300}
MONGODB_URI: ${NODE_MONGODB_URI:-mongodb://mongo:27017/audnexus}
PRIVATE_KEY: ${NODE_PRIVATE_KEY}
REDIS_URL: ${NODE_REDIS_URL:-redis://redis:6379}
UPDATE_INTERVAL: ${NODE_UPDATE_INTERVAL:-30}
UPDATE_THRESHOLD: ${NODE_UPDATE_THRESHOLD:-7}
ports:
- "3000:3000"
depends_on:
- mongo
- redis
networks:
- traefik-overlay
- internal
deploy:
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik-overlay"
- "traefik.http.routers.node-server.rule=Host(`${TRAEFIK_DOMAIN}`)"
- "traefik.http.routers.node-server.entrypoints=websecure"
- "traefik.http.routers.redirs.entrypoints=websecure"
- "traefik.http.services.node-server.loadbalancer.server.port=3000"
replicas: 15
mongo:
image: mongo:7@sha256:54996a559c724c726a31fb8131e1c9088a05f7e531760e2897212389bbf20fed
restart: always
volumes:
- /mnt/docker/mongo/data:/data/db
networks:
- internal
ports:
- "27017:27017"
redis:
image: redis:alpine@sha256:eaea8264f74a95ea9a0767c794da50788cbd9cf5223951674d491fa1b3f4f2d2
restart: always
networks:
- internal
ports:
- "6379:6379"
traefik:
image: traefik:v3.0@sha256:a208c74fd80a566d4ea376053bff73d31616d7af3f1465a7747b8b89ee34d97e
restart: always
command:
- "--providers.docker=true"
- "--entryPoints.websecure.address=:443"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.websecure.http.tls=true"
- "--certificatesresolvers.myresolver.acme.tlschallenge=true"
- "--certificatesresolvers.myresolver.acme.email=${TRAEFIK_EMAIL}"
- "--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json"
ports:
- "443:443"
volumes:
- /mnt/docker/letsencrypt:/letsencrypt
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- traefik-overlay
deploy:
replicas: 1
networks:
traefik-overlay:
internal: