-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
75 lines (72 loc) · 1.91 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
75
version: '3.9'
x-common-env: &common-env
REDIS_HOST: "redis"
networks:
lg:
driver: bridge
services:
redis:
image: redis:alpine
networks:
- lg
restart: always
command: redis-server
ports:
- "6379:6379"
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
websocket-server:
image: quay.io/soketi/soketi:1.4-16-debian
networks:
- lg
restart: always
# volumes:
# - source: ./docker/certs
# target: /certs
# type: bind
environment:
SOKETI_METRICS_SERVER_PORT: '9601'
SOKETI_DEFAULT_APP_ENABLE_CLIENT_MESSAGES: 'true'
SOKETI_DB_REDIS_HOST: 'redis'
# SOKETI_SSL_CERT: '/certs/tls.crt'
# SOKETI_SSL_KEY: '/certs/tls.key'
# ports:
# - '${SOKETI_PORT:-6001}:6001'
# - '${SOKETI_METRICS_SERVER_PORT:-9601}:9601'
app:
build:
context: .
dockerfile: Dockerfile
depends_on:
- redis
- websocket-server
networks:
- lg
deploy:
replicas: 1
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
ports:
- '80:8081'
- '443:8443'
- '5173:5173'
- '49200:49200'
- '6002:6002'
environment: *common-env
image: ghcr.io/prophet731/network-looking-glass
volumes:
- source: ./
target: /var/www/
type: bind
- source: ./docker/certs
target: /certs
type: bind