-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
99 lines (90 loc) · 2.47 KB
/
docker-compose.yaml
File metadata and controls
99 lines (90 loc) · 2.47 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
services:
minio:
image: m.daocloud.io/quay.io/minio/minio
entrypoint:
- sh
command:
- -c
- |-
(
while true; do
mc alias set local http://127.0.0.1:9000 minioadmin minioadmin && break
sleep 2
done
mc mb local/myminio
) &
/usr/bin/docker-entrypoint.sh server /data
ports:
- 9000:9000
container_name: minio
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
db-queue:
image: m.daocloud.io/docker.io/library/mysql:9.3.0
container_name: db-queue
restart: unless-stopped
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: example
MYSQL_DATABASE: queue
swaggerui-queue:
image: m.daocloud.io/docker.io/swaggerapi/swagger-ui:v5.18.2
container_name: swaggerui-queue
restart: unless-stopped
ports:
- 8000:8080
environment:
SWAGGER_JSON_URL: http://localhost:8082/swagger.json
gateway:
image: m.daocloud.io/ghcr.io/opencidn/opencidn/gateway:v0.0.9
container_name: gateway
depends_on:
minio:
condition: service_started
ports:
- 8080:8080
# TODO:
# The current implementation of s3, sign and actual access must be consistent
# Support custom it for sign link
extra_hosts:
- localhost:host-gateway
command:
- --address=:8080
- --default-registry
- docker.io
- --storage-url
- local-minio://minioadmin:minioadmin@myminio.us-east-1?forcepathstyle=true&secure=false&chunksize=104857600®ionendpoint=http://localhost:9000
- --link-expires
- 1m
- --queue-url
- http://queue:8082/apis/v1
- --queue-token
- QUEUE_TOKEN
queue:
image: m.daocloud.io/ghcr.io/opencidn/opencidn/queue:v0.0.9
container_name: queue
restart: unless-stopped
depends_on:
db-queue:
condition: service_started
ports:
- 8082:8082
command:
- --address=:8082
- --db-url
- root:example@tcp(db-queue:3306)/queue?charset=utf8mb4&parseTime=True
- --admin-token
- QUEUE_TOKEN
- --allow-anonymous-read=true
runner-1:
image: m.daocloud.io/ghcr.io/opencidn/opencidn/runner:v0.0.9
restart: unless-stopped
command:
- --queue-url
- http://queue:8082/apis/v1
- --queue-token
- QUEUE_TOKEN
- --storage-url
- local-minio://minioadmin:minioadmin@myminio.us-east-1?forcepathstyle=true&secure=false&chunksize=104857600®ionendpoint=http://localhost:9000