-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathdocker-compose.yml
48 lines (47 loc) · 951 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
39
40
41
42
43
44
45
46
47
48
version: '3'
services:
api:
build: .
container_name: nest-rest-typeorm-api
depends_on:
- db
environment:
APP_ENV: production
WEBTOKEN_ENCRYPTION_KEY: uAsBw6WxqD
WEBTOKEN_EXPIRATION_TIME: 2400
DB_TYPE: mysql
DB_USERNAME: root
DB_PASSWORD: password
DB_HOST: db
DB_PORT: 3306
DB_DATABASE: nest
links:
- db
nginx:
build:
context: .
dockerfile: Dockerfile-Nginx
container_name: nest-rest-typeorm-api-nginx
depends_on:
- api
environment:
NEST_HOST: api
NGINX_SERVER_NAME: localhost
NEST_PORT: 3333
NGINX_MAX_BODY: 100M
ports:
- 80:80
links:
- api
db:
image: mysql:5-oracle
container_name: nest-db
environment:
MYSQL_DATABASE: nest
MYSQL_ROOT_PASSWORD: password
ports:
- 3306:3306
volumes:
- mariadbdata:/var/lib/mysql
volumes:
mariadbdata: