forked from OpenLXP/openlxp-xss
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
85 lines (80 loc) · 2.12 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
85
version: "3"
services:
db-xss:
image: mysql:5.7
container_name: db
ports:
- '3310:3306'
environment:
MYSQL_DATABASE: "${DB_NAME}"
MYSQL_USER: "${DB_USER}"
MYSQL_PASSWORD: "${DB_PASSWORD}"
MYSQL_ROOT_PASSWORD: "${DB_ROOT_PASSWORD}"
# MYSQL_HOST: ''
networks:
- openlxp
healthcheck:
test: ['CMD', 'mysqladmin', 'ping', '-h', 'localhost', '-u', 'root', '-p$DB_ROOT_PASSWORD']
interval: 2s
timeout: 2s
retries: 20
start_period: 3s
neo4j:
image: neo4j:5.15.0
ports:
- '7687:7687'
- '7474:7474'
environment:
NEO4J_AUTH: neo4j/password
networks:
- openlxp
healthcheck:
test: wget http://localhost:7474 || exit 1
interval: 2s
timeout: 2s
retries: 20
start_period: 3s
app:
container_name: app
build:
context: .
restart: always
ports:
- "8010:8020"
command: >
sh -c "python manage.py makemigrations && python manage.py migrate && . /opt/app/start-app.sh"
environment:
DB_NAME: "${DB_NAME}"
DB_USER: "${DB_USER}"
DB_PASSWORD: "${DB_PASSWORD}"
DB_HOST: "${DB_HOST}"
DJANGO_SUPERUSER_USERNAME: "${DJANGO_SUPERUSER_USERNAME}"
DJANGO_SUPERUSER_PASSWORD: "${DJANGO_SUPERUSER_PASSWORD}"
DJANGO_SUPERUSER_EMAIL: "${DJANGO_SUPERUSER_EMAIL}"
SECRET_KEY_VAL: "${SECRET_KEY_VAL}"
ENTITY_ID: "${ENTITY_ID}"
SP_PUBLIC_CERT: "${SP_PUBLIC_CERT}"
SP_PRIVATE_KEY: "${SP_PRIVATE_KEY}"
# BAD_HOST: "${BAD_HOST}"
# OVERIDE_HOST: "${OVERIDE_HOST}"
# STRATEGY: "${STRATEGY}"
SENTENCE_TRANSFORMERS_HOME: "${SENTENCE_TRANSFORMERS_HOME}"
HF_HOME: "${HF_HOME}"
TRANSFORMERS_CACHE: "${TRANSFORMERS_CACHE}"
HF_DATASETS_CACHE: "${HF_DATASETS_CACHE}"
volumes:
- ./app:/opt/app/openlxp-xss
- huggingface_data:/opt/app/huggingface
depends_on:
db-xss:
condition: service_healthy
neo4j:
condition: service_healthy
networks:
- openlxp
volumes:
huggingface_data:
driver: local
networks:
openlxp:
driver: bridge