-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (47 loc) · 1.08 KB
/
docker-compose.yml
File metadata and controls
49 lines (47 loc) · 1.08 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
services:
nsm:
build: .
volumes:
- '/var/run/docker.sock:/var/run/docker.sock'
ports:
- '3000:3000'
extra_hosts:
- 'docker.host.internal:host-gateway'
environment:
- 'CONFIG_DOCKER_HOST=///var/run/docker.sock'
- 'DATABASE_URL=mysql://root:test@db:3306/nsm'
depends_on:
db:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:3000/ || exit 1"]
interval: 5s
timeout: 3s
retries: 5
start_period: 10s
develop:
watch:
- action: rebuild
path: .
ignore:
- ./service_logs
- ./logs
- ./node_packages
- ./package-lock.json
db:
image: mariadb:10.4
environment:
MARIADB_ROOT_PASSWORD: test
MARIADB_DATABASE: nsm
ports:
- '3306:3306'
volumes:
- nsm_db:/var/lib/mysql
healthcheck:
test: ["CMD-SHELL", "mysqladmin ping -h localhost -u root -ptest"]
interval: 5s
timeout: 3s
retries: 5
start_period: 10s
volumes:
nsm_db: