-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
32 lines (32 loc) · 966 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
version: '3.8'
services:
service-base: # rename this to something like <yourservicename>-service
build:
context: .
target: BASE_IMAGE
volumes:
- ./src:/usr/app/src
ports:
- '3000:3000'
volumes:
- ./src:/usr/app/src
- ./package.json:/usr/app/package.json
- ./yarn.lock:/usr/app/yarn.lock
- ./.babelrc:/usr/app/.babelrc
- ./.env:/usr/app/.env
###### uncomment below as appropriate
# depends_on:
# - mongo
# - postgresql
# - rabbitmq
# - redis
###### uncomment the correponsing db's/services you need
# mongo:
# image: mongo:4.2.8-bionic
# postgresql:
# image: postgres:12.3
# redis:
# image: redis:6.0.5
###### uncomment if you need to use the internal pub/sub system
# rabbitmq:
# image: rabbitmq:3.8.5