-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (40 loc) · 796 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (40 loc) · 796 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: '3'
services:
auth-server:
build:
context: .
dockerfile: docker/Dockerfile
environment:
- NODE_ENV=development
- SERVER_HOST=http://localhost:8080
- DB_HOST=mongodb://auth-db:27017
- DB_NAME=auth
- PORT=80
- DEBUG=oauth2orize
- JWT_SIGNING_KEY=s1gn1ngK31
- JWT_EXPIRATION_SECONDS=3600
ports:
- 8080:80
volumes:
- .:/app
- /app/node_modules
depends_on:
- auth-db
restart: always
networks:
- auth-network
entrypoint:
- npm
- run
- start:dev
auth-db:
image: mongo:4.0.0-xenial
ports:
- 27018:27017
environment:
MONGO_INITDB_DATABASE: auth
restart: always
networks:
- auth-network
networks:
auth-network: