-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (46 loc) · 848 Bytes
/
docker-compose.yml
File metadata and controls
46 lines (46 loc) · 848 Bytes
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: '2.2'
services:
api:
build:
context: .
dockerfile: ./api/Dockerfile
command: yarn run start:dev
volumes:
- ./api/src/:/api/src/
- ./api/migrations/:/api/migrations/
expose:
- "3000"
ports:
- "3000:3000"
- "9229:9229"
depends_on:
- "db"
links:
- "db"
env_file:
- ./api/.env
restart: always
app:
build:
context: .
dockerfile: ./app/Dockerfile
command: yarn run start:dev
volumes:
- ./app/src/:/app/src/
ports:
- "4200:4200"
depends_on:
- "api"
links:
- "api"
restart: always
db:
image: mdillon/postgis:10-alpine
expose:
- "5432"
ports:
- "5432:5432"
restart: always
environment:
POSTGRES_PASSWORD: supersecret
POSTGRES_DB: postgres