-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (49 loc) · 976 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
45
46
47
48
49
50
51
52
53
54
55
version: '3.1'
services:
app-dev:
image: node:8.12.0-alpine
links:
- api-dev
ports:
- 80:4200
volumes:
- ./web:/usr/src
working_dir: /usr/src
command: yarn start -- --proxy http://api-dev:3000
api-dev:
image: node:8.12.0-alpine
links:
- db
- db-migration
- smtp
environment:
- PGHOST=db
- PGDATABASE=postgres
- PGUSER=postgres
- PGPASSWORD=postgres
ports:
- 3000:3000
volumes:
- ./api:/usr/src
working_dir: /usr/src
command: yarn server
db-migration:
build: ./db-migration
depends_on:
- db
links:
- db
environment:
DATABASE_URL: postgres://postgres:postgres@db:5432/postgres
db:
image: postgres:10.5-alpine
restart: always
ports:
- 5432:5432
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
smtp:
image: mailhog/mailhog
ports:
- 8025:8025