forked from DeepNotesApp/DeepNotes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
97 lines (91 loc) · 2.14 KB
/
Copy pathdocker-compose.yml
File metadata and controls
97 lines (91 loc) · 2.14 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
services:
postgres:
image: postgres:16
container_name: postgres
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres_password_here
POSTGRES_DB: deepnotes
volumes:
- postgres_data:/var/lib/postgresql/data
- ./postgres-init.sql:/docker-entrypoint-initdb.d/init.sql
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U postgres']
interval: 5s
timeout: 5s
retries: 5
keydb:
image: eqalpha/keydb:alpine_x86_64_v6.3.3
container_name: keydb
restart: always
volumes:
- ./keydb.conf:/etc/keydb/redis.conf
- keydb_data:/data
healthcheck:
test: ['CMD', 'keydb-cli', 'ping']
interval: 5s
timeout: 5s
retries: 5
app-server:
build:
context: .
dockerfile: apps/app-server/Dockerfile
container_name: app-server
restart: always
depends_on:
postgres:
condition: service_healthy
keydb:
condition: service_healthy
env_file: .env
environment:
POSTGRES_HOST: postgres
KEYDB_HOSTS: keydb:6379
collab-server:
build:
context: .
dockerfile: apps/collab-server/Dockerfile
container_name: collab-server
restart: always
depends_on:
postgres:
condition: service_healthy
keydb:
condition: service_healthy
env_file: .env
environment:
POSTGRES_HOST: postgres
KEYDB_HOSTS: keydb:6379
COLLAB_SERVER_PORT: '48923'
realtime-server:
build:
context: .
dockerfile: apps/realtime-server/Dockerfile
container_name: realtime-server
restart: always
depends_on:
postgres:
condition: service_healthy
keydb:
condition: service_healthy
env_file: .env
environment:
POSTGRES_HOST: postgres
KEYDB_HOSTS: keydb:6379
REALTIME_SERVER_PORT: '48924'
client:
build:
context: .
dockerfile: apps/client/Dockerfile
container_name: client
restart: always
ports:
- '80:80'
depends_on:
- app-server
environment:
CLIENT_APP_URL: ${CLIENT_APP_URL}
volumes:
postgres_data:
keydb_data: