forked from peakresponse/peak-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
40 lines (40 loc) · 893 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
version: '2'
services:
mailcatcher:
image: dockage/mailcatcher:0.7.1
ports:
- 1080:1080
- 1025:1025
db:
image: postgis/postgis:11-3.0-alpine
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
server:
build: .
image: peakresponse/peak-server
command: bash -l -c "bin/init; nf start -j Procfile.dev"
volumes:
- .:/opt/node/app
- /opt/node/app/node_modules
- /opt/node/app/angular/node_modules
environment:
- PORT=3000
- DATABASE_URL=postgres://postgres@db/app
ports:
- 3001:3001
- 4200:4200
depends_on:
- db
nginx:
build: ./nginx
image: peakresponse/peak-nginx
volumes:
- ./nginx/templates:/etc/nginx/templates
- ./nginx/letsencrypt:/etc/letsencrypt
env_file:
- ./.env
ports:
- 3000:3000
- 8080:8080
depends_on:
- server