-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
executable file
·73 lines (73 loc) · 1.78 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# NODE JS BOILER PLATE docker-compose.yml
version: '3.4'
services:
redis:
image: redis
container_name: redis
restart: always
ports:
- '6379:6379/tcp'
skylab_db:
image: postgres
container_name: skylab_db
restart: always
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: 11111
POSTGRES_DB: demo_db
ports:
- 5432:5432
volumes:
- ./resources/data-dir/volume:/var/lib/postgresql/data
- ./resources/postgresql.conf.sample:/usr/share/postgresql/postgresql.conf.sample
- ./:/app
- ./resources/db-entrypoint:/docker-entrypoint-initdb.d
adminer:
image: adminer
container_name: skylab_db_admin
restart: always
ports:
- 8081:8080
### IF MONGO DB USED INSTEAD
# skylab_db:
# image: mongo
# restart: always
# container_name: skylab_db
# ports:
# - "27017:27017/tcp"
# volumes:
# - ./resources/db-notes-mongo:/data/db
# - ./resources/mongo-entrypoint:/docker-entrypoint-initdb.d
# skylab_db_admin:
# image: mongo-express
# restart: always
# container_name: skylab_db_admin
# ports:
# - "8081:8081/tcp"
# environment:
# ME_CONFIG_OPTIONS_EDITORTHEME: ambiance
# ME_CONFIG_BASICAUTH_USERNAME: mongo
# ME_CONFIG_BASICAUTH_PASSWORD: 11111
# ME_CONFIG_MONGODB_SERVER: skylab_db
skylab_be:
container_name: skylab_be
depends_on:
- 'redis'
build:
context: .
dockerfile: ./resources/Dockerfile-Server
command: >
/bin/bash -c "
npm start
"
ports:
- '3000:3000/tcp'
- '3001:3001/tcp'
- '4000:4000/tcp'
- '4001:4001/tcp'
environment:
- NODE_ENV=development
- ENV_NAME=dev
- PORT=4000
volumes:
- ./src:/app/src