This repository has been archived by the owner on May 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
141 lines (134 loc) · 3.76 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
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
version: "3.3"
volumes:
api_node_modules:
driver: local
ui_node_modules:
driver: local
MINIO_DATA_VOLUME:
driver: local
TUS_VOLUME:
driver: local
services:
db:
image: postgres:13-alpine
hostname: db
tty: true
environment:
TERM: "xterm-256color"
NODE_ENV: "development"
POSTGRES_DB: "collections"
POSTGRES_USER: "root"
POSTGRES_PASSWORD: ""
POSTGRES_HOST_AUTH_METHOD: "trust"
PGDATA: /postgresql/data
minio:
image: minio/minio:latest
hostname: s3
restart: always
ports:
- 10000:9000
- 10001:10001
environment:
MINIO_ROOT_USER: "${MINIO_ROOT_USER}"
MINIO_ROOT_PASSWORD: "${MINIO_ROOT_PASSWORD}"
MINIO_BROWSER_REDIRECT_URL: ${MINIO_BROWSER_REDIRECT_URL}
entrypoint: bash -c '/opt/bin/minio server /data --console-address ":10001"'
volumes:
- MINIO_DATA_VOLUME:/data
healthcheck:
test:
[
"CMD",
"curl",
"-f",
"http://localhost:10001/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"
DB_HOST: "db"
DB_PORT: "5432"
DB_USER: "root"
DB_PASSWORD: ""
DB_DATABASE: "collections"
volumes:
- api_node_modules:/srv/api/node_modules:delegated
- ./api:/srv/api:delegated
- ./.git:/srv/api/.git:delegated
- ./data:/srv/data:delegated
- ./scripts/wait-for-it.sh:/wait-for-it.sh
- ./configuration:/srv/configuration
working_dir: /srv/api
command:
[
"/wait-for-it.sh",
"db:5432",
"--",
"npm",
"run",
"develop"
]
ports:
- 8080:8080
ui:
image: node:18-bullseye
hostname: ui
tty: true
environment:
TERM: "xterm-256color"
NODE_ENV: "development"
volumes:
- ./ui:/srv/ui:delegated
- ../crate-builder-component:/srv/describo:delegated
- .git:/srv/ui/.git:delegated
- ../crate-builder-component.git:/srv/describo/.git:delegated
- ui_node_modules:/srv/ui/node_modules:delegated
working_dir: /srv/ui
command: [ "npm", "run", "develop" ]
elastic:
image: elasticsearch:8.4.1
hostname: elastic
environment:
- discovery.type=single-node
- ES_JAVA_OPTS=-Xms750m -Xmx750m
- xpack.security.enabled=false
- node.name=search
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
cap_add:
- IPC_LOCK
edge:
image: nginx:latest
hostname: edge
tty: true
environment:
TERM: "xterm-256color"
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf
- ./scripts/wait-for-it.sh:/wait-for-it.sh
command:
[
"/wait-for-it.sh",
"api:8080",
"-t",
"10",
"--",
"nginx",
"-g",
"daemon off;"
]
ports:
- 9000:9000