-
Notifications
You must be signed in to change notification settings - Fork 19
/
docker-compose.yml
38 lines (36 loc) · 943 Bytes
/
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
version: "3.5"
services:
api:
# image: thomas-oliver/nestjs-dockerized
build:
dockerfile: Dockerfile
context: .
depends_on:
- database
environment:
# DATABASE_URL: postgres://user:password@postgres:5432/db
DATABASE_HOST: database
DATABASE_USER: root
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: nest
NODE_ENV: development
PORT: 3000
ports:
- "3000:3000"
database:
image: mysql:5.7
restart: always
ports:
- 3306:3306
env_file:
- .env
volumes:
- ~/database/nest:/var/lib/mysql
# postgres:
# image: postgres:10.4
# ports:
# - "5432:5432"
# environment:
# POSTGRES_USER: user
# POSTGRES_PASSWORD: password
# POSTGRES_DB: db