-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
37 lines (36 loc) · 1.14 KB
/
docker-compose.yaml
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
services:
centrifugo:
image: centrifugo/centrifugo:v5.4.7
container_name: centrifugo
mem_limit: "3g"
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "1m"
command: centrifugo -c config.json
ulimits:
nofile:
soft: 65535
hard: 65535
networks:
- proxy
volumes:
- /etc/localtime:/etc/localtime:ro
- ./config.json:/centrifugo/config.json
# remove if not needed
labels:
- "traefik.enable=true"
- "traefik.http.routers.centrifugo.entrypoints=http"
- "traefik.http.routers.centrifugo.rule=Host(`push.nuxify.tech`)"
- "traefik.http.routers.centrifugo-secure.entrypoints=https"
- "traefik.http.routers.centrifugo-secure.rule=Host(`push.nuxify.tech`)"
- "traefik.http.routers.centrifugo-secure.tls=true"
- "traefik.http.routers.centrifugo-secure.tls.certresolver=http"
- "traefik.http.routers.centrifugo-secure.service=centrifugo"
- "traefik.http.services.centrifugo.loadbalancer.server.port=8000"
- "traefik.docker.network=proxy"
# remove if not needed
networks:
proxy:
external: true