-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
84 lines (71 loc) · 1.64 KB
/
docker-compose.yml
File metadata and controls
84 lines (71 loc) · 1.64 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
version: '2.3'
services:
postgres:
image: postgres:15
restart: always
profiles: [ 'db' ]
container_name: postgres-finviz-parse
volumes:
- finviz:/var/lib/postgresql/data
ports:
- 5432:5432
logging:
driver: json-file
options:
max-size: '100m'
max-file: '5'
environment:
- POSTGRES_DB=finviz
- POSTGRES_USER=finviz
- POSTGRES_PASSWORD=finviz
healthcheck:
test: [ 'CMD-SHELL', 'pg_isready -U finviz' ]
interval: 10s
timeout: 5s
retries: 5
migrate:
image: migrate/migrate:v4.16.2
profiles: [ 'db' ]
container_name: migrate-finviz-parse
volumes:
- ./migrations:/migrations
logging:
driver: json-file
options:
max-size: '10m'
max-file: '5'
command:
[
'-path',
'/migrations',
'-database',
'postgres://postgres-finviz-parse:5432/finviz?user=finviz&password=finviz&sslmode=disable',
'up'
]
depends_on:
postgres:
condition: service_healthy
finviz:
build:
context: .
image: finviz:dev
profiles: [ 'app' ]
container_name: finviz-dev
hostname: finviz-dev
ports:
- 8080:8080
logging:
driver: json-file
options:
max-size: '10m'
max-file: '5'
environment:
- DEBUG=true
- PG_HOST=postgres-finviz-parse:5432
- PG_DATABASE=finviz
- PG_USERNAME=finviz
- PG_PASSWORD=finviz
- PG_POOL_MAX_CONNS=10
- PG_POOL_MIN_CONNS=2
volumes:
finviz: