-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
39 lines (37 loc) · 981 Bytes
/
docker-compose.yaml
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
version: '3.7'
services:
group-bet-logger:
build:
context: .
target: production
image: groupbetlogger
depends_on:
- group-bet-logger-postgres
environment:
POSTGRES_DB: groupbetlogger_development
POSTGRES_PASSWORD: password
POSTGRES_USERNAME: postgres
POSTGRES_HOST: group-bet-logger-postgres
POSTGRES_PORT: 5432
PORT: 3000
SESSIONSECRET: 'test'
volumes:
- ./server/:/home/node/server/
- ./config/:/home/node/migrations/
- ./views/:/home/node/views/
- ./index.js:/home/node/index.js
- ./package.json:/home/node/package.json
ports:
- "3000:3000"
group-bet-logger-postgres:
image: postgres:11.4-alpine
environment:
POSTGRES_DB: groupbetlogger_development
POSTGRES_PASSWORD: password
POSTGRES_USERNAME: postgres
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
volumes:
postgres_data: {}