-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (40 loc) · 805 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (40 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
40
41
42
43
version: "3.9"
services:
db:
image: postgres
restart: always
environment:
POSTGRES_USER: app
POSTGRES_PASSWORD: app
POSTGRES_DB: db
ports:
- "5431:5432"
volumes:
- db:/var/lib/posgressql
migrate:
image: microfish91/portfolio-instruments-api:migrate-${API_VERSION:-v2}
depends_on:
- db
environment:
DB_HOST: db
DB_PORT: 5432
DB_NAME: db
DB_USER: app
DB_PASSWORD: app
DB_SSL_MODE: disable
app:
image: microfish91/portfolio-instruments-api:${API_VERSION:-v2}
depends_on:
- db
- migrate
environment:
DB_HOST: db
DB_PORT: 5432
DB_NAME: db
DB_USER: app
DB_PASSWORD: app
DB_SSL_MODE: disable
ports:
- "3000:3000"
volumes:
db: