-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
57 lines (53 loc) · 1.17 KB
/
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
49
50
51
52
53
54
55
56
57
version: '3'
services:
client:
build:
context: .
dockerfile: Dockerfile.client-local
container_name: montepouli-client
ports:
- '4200:4200'
volumes:
- ./apps/client/src:/usr/src/app/apps/client/src
networks:
- dev
command: bash -c 'npm run client:start:dev-no-host'
server:
build:
context: .
dockerfile: Dockerfile.server-local
depends_on:
- mongodb
container_name: montepouli-server
environment:
- MONGO_USERNAME=root
- MONGO_PASSWORD=example
- SERVER_SECRET=secret01
- ENV=dev
- MONGO_DNS_NAME=mongodb
- COOKIE_SECRET=secret
ports:
- '3000:3000'
volumes:
- ./apps/api:/usr/src/app/apps/api
networks:
- dev
command: sh -c 'npm run api:start:dev'
mongodb:
container_name: montepouli-mongo-db
image: mongo:4.2
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=example
volumes:
- montepouli-volume:/data/db
- montepouli-volume:/data/configdb
ports:
- '27017:27017'
- '28017:28017'
networks:
- dev
networks:
dev:
volumes:
montepouli-volume: