forked from clevertech/boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (44 loc) · 852 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
33
34
35
36
37
38
39
40
41
42
43
44
version: '2'
services:
api:
build: api/.
command: yarn run start-dev
depends_on:
- db
- redis
env_file:
- api/.env
ports:
- '8080:8080'
- '9229:9229'
expose:
- 9229
volumes:
- ./api/.:/opt/app
- /opt/app/node_modules
frontend:
build: frontend/.
command: npm start
ports:
- "0.0.0.0:3000:3000"
- "0.0.0.0:3001:3001"
- "0.0.0.0:3002:3002"
volumes:
- ./frontend/.:/opt/app
- /opt/app/node_modules
db:
image: postgres:11.15
restart: always
environment:
POSTGRES_PASSWORD: o5MU9UhWaHNUXfrMqU~Ho
POSTGRES_USER: postgres
POSTGRES_DB: boilerplate
ports:
- '5432:5432'
adminer:
image: adminer
restart: always
ports:
- 8081:8080
redis:
build: docker/definitions/redis