Repository navigation
Expand file tree
/
Copy pathcompose.yml
More file actions
155 lines (144 loc) · 3.82 KB
/
Copy pathcompose.yml
File metadata and controls
155 lines (144 loc) · 3.82 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
name: openhotel-dev
x-dev: &dev
image: openhotel-dev
network_mode: service:net
depends_on: [net]
restart: unless-stopped
tty: true
services:
net:
image: alpine
container_name: net
command: sleep infinity
ports:
- "1994:1994" # client
- "2024:2024" # auth
- "2025:2025" # web
- "9400:9400" # onet
- "2030:2030" # asset-editor
- "1995:1995" # static
- "9000:9000" # s3
- "8025:8025" # mail
s3:
image: chrislusf/seaweedfs:latest
container_name: s3
network_mode: service:net
depends_on: [net]
restart: unless-stopped
command: server -dir=/data -s3 -s3.port=9000 -s3.config=/etc/seaweedfs/s3.json
volumes:
- ./s3/config.json:/etc/seaweedfs/s3.json:ro
- s3-data:/data
mail:
image: axllent/mailpit:latest
container_name: mail
network_mode: service:net
depends_on: [net]
restart: unless-stopped
command: >-
--smtp-tls-cert sans:localhost
--smtp-tls-key sans:localhost
--smtp-require-tls
--smtp-auth-accept-any
auth:
<<: *dev
container_name: auth
depends_on:
net:
condition: service_started
mail:
condition: service_healthy
build:
context: .
args:
DENO_VERSION: ${DENO_VERSION:-2.9.7}
working_dir: /src/auth
command: bash -c "deno task install && deno task start"
healthcheck:
test: curl -fs http://localhost:20240/api/v3/_/version
interval: 5s
timeout: 3s
retries: 5
start_period: 5m
volumes:
- ${REPOS_DIR:-..}/auth:/src/auth
- /src/auth/node_modules
- /src/auth/app/client/node_modules
- deno-cache:/root/.cache/deno
client:
<<: *dev
container_name: client
depends_on:
net:
condition: service_started
auth:
condition: service_healthy
onet:
condition: service_healthy
working_dir: /src/openhotel
command: bash -c "deno task install && deno task start"
volumes:
- ${REPOS_DIR:-..}/openhotel:/src/openhotel
- /src/openhotel/node_modules
- /src/openhotel/app/client/node_modules
- /src/openhotel/app/server/node_modules
- deno-cache:/root/.cache/deno
onet:
<<: *dev
container_name: onet
depends_on:
net:
condition: service_started
auth:
condition: service_healthy
working_dir: /src/onet
command: bash -c "yarn install && deno task start"
healthcheck:
test: curl -fs http://localhost:9400/api/v1/version
interval: 5s
timeout: 3s
retries: 5
start_period: 5m
volumes:
- ${REPOS_DIR:-..}/onet:/src/onet
- /src/onet/node_modules
- deno-cache:/root/.cache/deno
web:
<<: *dev
container_name: web
depends_on:
net:
condition: service_started
auth:
condition: service_healthy
working_dir: /src/web
command: bash -c "deno task install && deno task start"
volumes:
- ${REPOS_DIR:-..}/web:/src/web
- /src/web/node_modules
- /src/web/app/client/node_modules
- deno-cache:/root/.cache/deno
asset-editor:
<<: *dev
container_name: asset-editor
working_dir: /src/asset-editor
command: bash -c "deno task install && deno task start"
volumes:
- ${REPOS_DIR:-..}/asset-editor:/src/asset-editor
- /src/asset-editor/node_modules
- /src/asset-editor/app/client/node_modules
- /src/asset-editor/app/server/node_modules
- deno-cache:/root/.cache/deno
static:
<<: *dev
container_name: static
working_dir: /src/static
command: bash -c "deno task install && deno task start"
volumes:
- ${REPOS_DIR:-..}/static:/src/static
- /src/static/node_modules
- /src/static/app/client/node_modules
- deno-cache:/root/.cache/deno
volumes:
deno-cache:
s3-data: