-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
39 lines (37 loc) · 805 Bytes
/
compose.yaml
File metadata and controls
39 lines (37 loc) · 805 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
name: dataweaver-stack
services:
server:
build:
dockerfile: ./Dockerfile
ports:
- "80:3000"
links:
- db
environment:
DATABASE_URI: postgresql://postgres:postgres@db:5432/postgres
ENVIRONMENT: production
depends_on:
- migration
migration:
build:
context: .
command: ["npm", "run", "prod:db:migrate:latest"]
links:
- db
environment:
DATABASE_URI: postgresql://postgres:postgres@db:5432/postgres
ENVIRONMENT: production
db:
container_name: postgres
image: postgres:latest
volumes:
- db-data:/data/postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
PGDATA: /data/postgres
ports:
- "5432:5432"
volumes:
db-data:
driver: local