-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
52 lines (48 loc) · 1.06 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
# FIXME:
# DISABLED STORAGE FOR THE INITIAL VERSION SINCE BUILDING IS LIMITED TO A FEW SECONDS
services:
api:
build: "."
container_name: goblin_api
env_file: .env
expose:
- "3000:3000"
environment:
MINIO_URL: goblin_minio:9000
restart: always
ports:
- "3000:3000"
volumes:
- "./:/usr/src/app"
profiles: [app]
minio:
image: "minio/minio:RELEASE.2024-05-01T01-11-10Z"
container_name: goblin_minio
command: 'server --console-address ":9001" /home/files'
healthcheck:
test: ["CMD", "curl", "-I", "http://127.0.0.1:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
env_file:
- .env
expose:
- "9000:9000"
- "9001:9001"
volumes:
- "goblin:/data"
profiles: [storage]
nginx:
container_name: goblin_nginx
depends_on:
- api
hostname: nginx
image: "nginx:1.19.2-alpine"
ports:
- "80:80"
- "9000:9000"
volumes:
- "./nginx.conf:/etc/nginx/nginx.conf:ro"
profiles: [app]
volumes:
goblin: