-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose-github.yml
78 lines (67 loc) · 1.81 KB
/
docker-compose-github.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
# A compose file for github actions
version: '3'
services:
wsgi:
container_name: c2corg_images_test
image: c2corg/v6_images:test
depends_on:
- initbuckets
environment:
STORAGE_BACKEND: local
TEMP_FOLDER: /tmp/temp
API_SECRET_KEY: good_secret
INCOMING_BUCKET: incoming
ACTIVE_BUCKET: active
INCOMING_FOLDER: /tmp/incoming
ACTIVE_FOLDER: /tmp/active
INCOMING_PREFIX: MINIO
ACTIVE_PREFIX: MINIO
MINIO_ENDPOINT: http://minio:9000
MINIO_ACCESS_KEY_ID: minio
MINIO_SECRET_KEY: miniosecret
S3_SIGNATURE_VERSION: s3v4
ROUTE_PREFIX: /
AUTO_ORIENT_ORIGINAL: 1
GUNICORN_PARAMS: "-b :8080 --worker-class gthread --threads 10 --workers 5 --access-logfile - --log-level debug"
C2CWSGI_LOG_LEVEL: DEBUG
C2CORG_IMAGES_LOG_LEVEL: DEBUG
cap_add:
- NET_BIND_SERVICE
ports:
- 8080:8080
links:
- minio
minio:
image: minio/minio
environment:
MINIO_ACCESS_KEY: minio
MINIO_SECRET_KEY: miniosecret
command:
- server
- /data
volumes:
- ./data:/data:rw
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost/minio/health/live']
interval: 10s
timeout: 10s
retries: 3
# minio has dropped existing folder support
# We use mc to create the buckets and set anonymous access policy
initbuckets:
image: minio/mc
depends_on:
- minio
links:
- minio
cap_add:
- NET_BIND_SERVICE
entrypoint: >
/bin/sh -c "
/usr/bin/mc alias set myminio http://minio:9000 minio miniosecret;
/usr/bin/mc mb myminio/active;
/usr/bin/mc mb myminio/incoming;
/usr/bin/mc anonymous set download myminio/active;
/usr/bin/mc anonymous set none myminio/incoming;
exit 0;
"