-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (39 loc) · 839 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (39 loc) · 839 Bytes
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
version: "2.1"
services:
node-api-dev:
container_name: node-api-dev
build:
context: .
dockerfile: .docker/app.dev.dockerfile
restart: on-failure
depends_on:
mysql-dev:
condition: service_healthy
env_file: .env
volumes:
- .:/usr/src
- /usr/src/node_modules
ports:
- "3000:3000"
networks:
- development
mysql-dev:
container_name: mysql-dev
image: mysql:5.7.27
restart: always
environment:
MYSQL_DATABASE: nodejsapi
MYSQL_USER: nodeuser
MYSQL_PASSWORD: nodeuserpass
ports:
- "3307:3306"
volumes:
- ./data/mysql:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
timeout: 20s
retries: 10
networks:
- development
networks:
development: