-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
63 lines (61 loc) · 1.6 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
version: "3"
services:
mysql:
container_name: ${MYSQL_CONTAINER_NAME}
image: mysql:8
volumes:
- ./docker/mysql/mysqld_charset.cnf:/etc/mysql/conf.d/my.cnf
ports:
- ${MYSQL_PORT}:3306
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASS}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASS}
MYSQL_DATABASE: ${MYSQL_DB}
MYSQL_TCP_PORT: ${MYSQL_PORT}
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
timeout: 20s
retries: 5
neo4j:
container_name: ${NEO4J_CONTAINER_NAME}
build:
context: .
dockerfile: ./docker/neo4j/dockerfile
restart: always
ports:
- ${NEO4J_PORT_1}:7474
- ${NEO4J_PORT_2}:7687
volumes:
- ./docker/neo4j/volumes/data:/data
- ./docker/neo4j/volumes/logs:/logs
- ./docker/neo4j/volumes/conf:/conf
- ./data:/import
- ./docker/neo4j/volumes/script:/script
environment:
- NEO4J_AUTH=${NEO4J_AUTH}
- EXTENSION_SCRIPT=/script/import_data.sh
- NEO4J_PLUGINS=["graph-data-science"]
healthcheck:
test: "curl -f http://localhost:7474 || exit 1"
timeout: 10s
retries: 5
start_period: 20s
api:
container_name: ${API_CONTAINER_NAME}
build:
context: .
dockerfile: ./docker/api/dockerfile
stdin_open: true
tty: true
volumes:
- ./log:/root/log
environment:
- GIN_MODE=release
ports:
- ${API_PORT}:8080
depends_on:
mysql:
condition: service_healthy
neo4j:
condition: service_healthy