-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (32 loc) · 753 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
33 lines (32 loc) · 753 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
version: '1.0'
services:
mysql:
image: mysql
environment:
MYSQL_ROOT_PASSWORD: 'randomrootpassword'
MYSQL_DATABASE: 'nestjs_typeorm'
MYSQL_HOST: 'mysql'
MYSQL_PORT: 3306
MYSQL_USERNAME: 'root'
MYSQL_PASSWORD: 'randomrootpassword'
MYSQL_SYNCHRONIZE: true
ports:
- '3306:3306'
healthcheck:
test: ['CMD', 'mysqladmin', 'ping', '-h', 'mysql']
timeout: 5s
retries: 10
interval: 3s
# nestjs_api:
# build:
# context: ./api/
# dockerfile: Dockerfile
# ports:
# - '3000:3000'
# environment:
# - PORT=3000
# - NODE_ENV=development
# - MYSQL_HOST=mysql
# depends_on:
# mysql:
# condition: service_healthy