-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (41 loc) · 873 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (41 loc) · 873 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
version: '3.7'
services:
api:
container_name: api
build:
dockerfile: dockerfile
context: ./api
ports:
- 3090:3090
volumes:
- /app/node_modules
- ./api:/app
depends_on:
- postgres
links:
- postgres
dashboard:
container_name: dashboard
build:
dockerfile: dockerfile
context: ./dashboard
ports:
- 3000:3000
volumes:
- /app/node_modules
- ./dashboard:/app
postgres:
restart: always
container_name: postgres
image: 'postgres:latest'
ports:
- 5432:5432
environment:
POSTGRES_DB: "dev_db"
POSTGRES_USER: "guardrails"
POSTGRES_PASSWORD: "password"
volumes:
- ./api/database/script/init_test.sql:/docker-entrypoint-initdb.d/init_test.sql
- pgdata:/var/lib/postgresql/data
volumes:
pgdata: