-
-
Notifications
You must be signed in to change notification settings - Fork 42
/
docker-compose.yml
84 lines (76 loc) · 1.79 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
services:
db:
image: postgres
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
uwsgi:
restart: always
# IMPORTANT: update the tag to coincide with release version
image: ghcr.io/singularityhub/sregistry:latest
env_file:
- ./.minio-env
volumes:
- .:/code
- ./static:/var/www/static
- ./images:/var/www/images
# uncomment for PAM auth
#- /etc/passwd:/etc/passwd
#- /etc/shadow:/etc/shadow
links:
- minio
- redis
- db
nginx:
restart: always
image: ghcr.io/singularityhub/sregistry_nginx:latest
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
- ./uwsgi_params.par:/etc/nginx/uwsgi_params.par:ro
volumes_from:
- uwsgi
links:
- uwsgi
- db
redis:
restart: always
image: redis:latest
scheduler:
# IMPORTANT: update the tag to coincide with release version
image: ghcr.io/singularityhub/sregistry:latest
command: python /code/manage.py rqscheduler
volumes:
- .:/code
volumes_from:
- uwsgi
env_file:
- ./.minio-env
links:
- minio
- redis
- db
worker:
# IMPORTANT: update the tag to coincide with release version
image: ghcr.io/singularityhub/sregistry:latest
command: python /code/manage.py rqworker default
volumes:
- .:/code
volumes_from:
- uwsgi
env_file:
- ./.minio-env
links:
- minio
- redis
- db
minio:
# https://min.io/docs/minio/linux/operations/install-deploy-manage/migrate-fs-gateway.html
image: minio/minio:RELEASE.2022-08-02T23-59-16Z
volumes:
- ./minio-images:/images
env_file:
- ./.minio-env
ports:
- "9000:9000"
command: ["server", "images"]