-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
184 lines (171 loc) · 4.45 KB
/
docker-compose.yml
File metadata and controls
184 lines (171 loc) · 4.45 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
services:
crisalid-apollo:
container_name: crisalid-apollo
build:
context: ./crisalid-apollo
dockerfile: Dockerfile
target: builder
ports:
- 4000:4000
restart: unless-stopped
command: npm run dev
env_file:
- ./crisalid-apollo/.env
neo4j:
image: neo4j:5-community
container_name: neo4j
ports:
- 7474:7474
- 7687:7687
environment:
- NEO4J_AUTH=neo4j/password
- NEO4J_apoc_export_file_enabled=true
- NEO4J_apoc_import_file_enabled=true
- NEO4J_apoc_import_file_use__neo4j__config=true
- NEO4J_server_memory_heap_initial__size=2G
- NEO4J_server_memory_heap_max__size=4G
- NEO4J_server_memory_pagecache_size=3G
- NEO4JLABS_PLUGINS=["apoc"]
volumes:
- ./crisalid-apollo/neo4j/data:/data
- ./crisalid-apollo/neo4j/logs:/logs
- ./crisalid-apollo/neo4j/import:/import
- ./crisalid-apollo/neo4j/backups:/backups
- ./crisalid-apollo/neo4j/plugins:/plugins
neo4j-loader:
image: neo4j/neo4j-admin:5-community
container_name: neo4j-loader
volumes:
- ./crisalid-apollo/neo4j/data:/data
- ./crisalid-apollo/neo4j/backups:/backups
- ./crisalid-apollo/neo4j/dumps/neo4j.dump:/neo4j.dump:ro
environment:
- NEO4J_ACCEPT_LICENSE_AGREEMENT=yes
- RESTORE_NEO4J_DUMP=${RESTORE_NEO4J_DUMP:-false}
entrypoint: |
sh -c "
if [ \"$${RESTORE_NEO4J_DUMP}\" = \"true\" ]; then
echo 'Restoring Neo4j dump...';
cat /neo4j.dump | neo4j-admin database load neo4j --from-stdin --overwrite-destination=true;
else
echo 'Skipping Neo4j dump restoration';
fi
"
# rabbitmq:
# image: rabbitmq:3-management
# container_name: rabbitmq
# ports:
# - 5672:5672
# - 15672:15672
# environment:
# RABBITMQ_DEFAULT_USER: user
# RABBITMQ_DEFAULT_PASS: password
# volumes:
# - rabbitmq-data:/var/lib/rabbitmq
projects-backend:
container_name: crisalid-projects-backend
build:
context: ./projects-backend
args:
EXPORT_FLAG: --with dev
ports:
- "8000:8000"
depends_on:
- postgres
- keycloak
restart: unless-stopped
command: uvicorn projects.asgi:application --host 0.0.0.0 --port 8000 --reload
environment:
DJANGO_SETTINGS_MODULE: projects.settings.local
env_file:
- ./projects-backend/.env
volumes:
- ./projects-backend:/app
postgres:
image: pgvector/pgvector:pg14
user: postgres
ports:
- 5432:5432
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=password
- POSTGRES_EXTENSIONS=pg_trgm, unaccent
healthcheck:
test: ["CMD", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
minio:
image: quay.io/minio/minio
ports:
- 9000:9000
- 9001:9001
entrypoint:
- /usr/bin/bash
- -c
command:
# Create the bucket projects before starting minio
- mkdir -p /data/projects && minio server --console-address :9001 /data
volumes:
- s3:/data
redis:
image: redis:6.2-bullseye
command:
# Enable persistence
- redis-server
- --save
- "60"
- "1"
- --loglevel
- warning
ports:
- 6379:6379
volumes:
- projects-backend-redis:/data
celery:
build: ./projects-backend
command: celery -A projects worker -B -l info
restart: unless-stopped
depends_on:
- projects-backend
- redis
environment:
DJANGO_SETTINGS_MODULE: projects.settings.local
env_file:
- ./projects-backend/.env
mailhog:
image: mailhog/mailhog
ports:
- 1025:1025
- 8025:8025
mjml:
image: danihodovic/mjml-server
ports:
- 15500:15500
keycloak:
build:
context: ./projects-backend
dockerfile: Dockerfile.keycloak
ports:
- 8001:8080
environment:
- KEYCLOAK_ADMIN=admin
- KEYCLOAK_ADMIN_PASSWORD=admin
healthcheck:
test: ["CMD", "curl", "-LIsSfo", "/dev/null", "http://127.0.0.1:8080/realms/lp/.well-known/openid-configuration"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
command:
- start-dev
- --import-realm
- --spi-theme-static-max-age=-1
- --spi-theme-cache-themes=false
- --spi-theme-cache-templates=false
volumes:
rabbitmq-data:
projects-backend-redis:
postgres-data:
s3: