/
docker-compose.yml
executable file
·46 lines (43 loc) · 1.03 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
version: '3'
services:
database:
image: mongo:latest
container_name: 'mongo-db-test'
environment:
- MONGO_INITDB_DATABASE=mongo-db-test
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=rootpassword
ports:
- 27017-27019:27017-27019
volumes:
- ./init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
- ./mongo-volume:/data/db
restart: always
backend:
image: jorgemelgoza/node-mean-first:1.0.3
links:
- database
depends_on:
- database
container_name: 'node-mean-first'
environment:
- JWT_KEY=ABCDEFG123456789
- DB_HOST=database
- DB_PORT=27017
- DB_NAME=mean-first-app
ports:
- 3000:3000
volumes:
- ./node-bck/images:/images
restart: always
frontend:
image: jorgemelgoza/mean-front:1.0.12
links:
- backend
depends_on:
- backend
container_name: 'node-mean-front'
ports:
- 4200:80
command: [nginx-debug, '-g', 'daemon off;']
restart: always