-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
47 lines (45 loc) · 997 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
services:
mongodb:
image: mongo:latest
environment:
MONGO_INITDB_ROOT_USERNAME: ${DB_USER}
MONGO_INITDB_ROOT_PASSWORD: ${DB_PASS}
MONGO_INITDB_DATABASE: ${DB_NAME}
ports:
- 27017:27017
server:
build:
context: .
dockerfile: Dockerfile.server
args:
- PORT=${PORT}
environment:
PORT: ${PORT}
DB_HOST: mongodb
DB_PORT: ${DB_PORT}
DB_NAME: ${DB_NAME}
DB_USER: ${DB_USER}
DB_PASS: ${DB_PASS}
JWT_SECRET: ${JWT_SECRET}
SMTP_HOST: ${SMTP_HOST}
SMTP_PORT: ${SMTP_PORT}
SMTP_USER: ${SMTP_USER}
SMTP_PASS: ${SMTP_PASS}
CODE_LIFE_TIME: ${CODE_LIFE_TIME}
MONGO_URI: ${MONGO_URI}
NODE_ENV: ${NODE_ENV}
ports:
- 8080:${PORT}
depends_on:
- mongodb
devmx:
build:
context: .
dockerfile: Dockerfile.front
environment:
PORT: ${PORT}
ports:
- 4200:4200
depends_on:
- server
- mongodb