-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
75 lines (71 loc) · 2 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.7'
volumes:
api_node_modules:
driver: local
ui_node_modules:
driver: local
services:
minio:
image: minio/minio:latest
restart: always
ports:
- 10000:9000
- 10001:9001
environment:
MINIO_ROOT_USER: "root"
MINIO_ROOT_PASSWORD: "rootpass"
MINIO_BROWSER_REDIRECT_URL: http://localhost:10001
entrypoint: bash -c 'mkdir -p /data/repository && /opt/bin/minio server /data --console-address ":9001"'
volumes:
- ./s3-data:/data
healthcheck:
test:
[
"CMD",
"curl",
"-f",
"http://localhost:9001/minio/health/live"
]
interval: 30s
timeout: 20s
retries: 3
api:
image: node:18-bullseye
hostname: api
tty: true
environment:
TERM: "xterm-256color"
NODE_ENV: "development"
LOG_LEVEL: "debug"
DEBUG: "tus-s3-uploader:*"
volumes:
- api_node_modules:/srv/api/node_modules:delegated
- ./api:/srv/api:delegated
- ./src:/srv/api/src:delegated
working_dir: /srv/api
command: [ "npm", "run", "develop" ]
ports:
- 8080:8080
ui:
image: node:18-bullseye
hostname: ui
tty: true
environment:
TERM: "xterm-256color"
NODE_ENV: "development"
volumes:
- ui_node_modules:/srv/ui/node_modules:delegated
- ./ui:/srv/ui:delegated
working_dir: /srv/ui
command: [ "npm", "run", "develop" ]
edge:
image: nginx:latest
hostname: edge
tty: true
environment:
TERM: "xterm-256color"
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf
command: [ "nginx", "-g", "daemon off;" ]
ports:
- 9000:9000