-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (54 loc) · 1.16 KB
/
docker-compose.yml
File metadata and controls
56 lines (54 loc) · 1.16 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
version: '3.9'
networks:
book-example:
services:
sql:
image: mariadb:10.5.9
container_name: 'book-example-sql'
restart: always
ports:
- '3306:3306'
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: test
MYSQL_PASSWORD: sql
MYSQL_DATABASE: test
healthcheck:
test: mysqladmin ping -h 127.0.0.1 -u root --password=root
interval: 5s
retries: 5
networks:
- book-example
graph:
image: neo4j:5
container_name: 'book-example-graph'
restart: always
ports:
- '7687:7687'
- '7474:7474'
environment:
NEO4J_AUTH: neo4j/test
NEO4J_dbms_security_auth__minimum__password__length: 4
healthcheck:
test: "wget -q --method=HEAD http://localhost:7474 || exit 1"
interval: 1s
timeout: 1s
retries: 200
networks:
- book-example
php:
build:
context: .
container_name: 'book-example-php'
networks:
- book-example
working_dir: /opt/project
volumes:
- ./:/opt/project
depends_on:
sql:
condition: service_healthy
graph:
condition: service_healthy
env_file:
- .env