-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
120 lines (111 loc) · 2.6 KB
/
Copy pathcompose.yaml
File metadata and controls
120 lines (111 loc) · 2.6 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
services:
nginx:
image: nginx:1.25.4
container_name: crab-nginx
depends_on:
- ui
env_file:
- ./.env
ports:
- ${CRAB_EXTERNAL_PORT}:80
networks:
- private
- public
volumes:
- ./templates/nginx.conf:/etc/nginx/conf.d/revproxy.conf
minio:
image: minio/minio:RELEASE.2024-10-13T13-34-11Z
container_name: crab-minio
entrypoint: ["/bin/sh", "-ce", "/usr/bin/docker-entrypoint.sh minio server --console-address \":9001\" /data"]
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 5s
timeout: 5s
retries: 5
ports:
- 9001:9001
- 9000:9000
env_file:
- ./.env
networks:
- private
- public
volumes:
- minio:/data
rabbitmq:
image: rabbitmq:3-management
container_name: crab-rabbitmq
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 30s
timeout: 30s
retries: 3
ports:
- 5672:5672
env_file:
- ./.env
command: ["bash", "-c", "chmod 400 /var/lib/rabbitmq/.erlang.cookie; rabbitmq-server"]
networks:
- private
couchdb:
image: couchdb:3.4.2
container_name: crab-couchdb
ports:
- 5984:5984
networks:
- private
- public
volumes:
- couchdb:/opt/couchdb/data
- ./config/couchdb/docker.ini:/opt/couchdb/etc/local.d/docker.ini
keycloak:
image: quay.io/keycloak/keycloak:26.0.5
container_name: crab-keycloak
env_file:
- ./.env
ports:
- 7080:7080
networks:
- private
- public
volumes:
- keycloak:/opt/keycloak/data/
command: ["start-dev", "--http-port", "7080", "--https-port", "7443", "--proxy-headers", "forwarded", "--hostname", "${EXT_KEYCLOAK_HOST}"]
ui:
image: habaldwin01/crab-ui:latest
container_name: crab-ui
depends_on:
- minio
- keycloak
- rabbitmq
entrypoint: ["gunicorn", "-w", "${GUNICORN_WORKERS}", "main:app", "-b", "0.0.0.0:8957"]
env_file:
- ./.env
networks:
- private
volumes:
- ${CRAB_CONFIG_FILE_HOST_LOCATION:-./config/crab.json}:/app/config.json
worker:
image: habaldwin01/crab-ui:latest
restart: on-failure
depends_on:
- minio
- rabbitmq
entrypoint: ["python3", "main.py"]
env_file:
- ./.env
networks:
- private
volumes:
- ${CRAB_CONFIG_FILE_HOST_LOCATION:-./config/crab.json}:/app/config.json
networks:
public:
external: true
driver: bridge
private:
external: false
volumes:
minio:
couchdb:
keycloak:
rabbitmq: