-
Notifications
You must be signed in to change notification settings - Fork 0
/
api.yml
57 lines (51 loc) · 1.01 KB
/
api.yml
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
version: "3.9"
services:
postgres:
container_name: postgres
image: fds-postgres
build: ./db/postgres/.
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- 5432
networks:
- db
# wait till all scripts are done etc.
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
redis:
container_name: redis
image: fds-redis
build: ./db/redis/.
healthcheck:
test: ["CMD", "redis-cli","ping"]
interval: 5s
timeout: 5s
retries: 5
ports:
- 6379
networks:
- db
api:
restart: on-failure
container_name: fds-api
image: fds-api
build: ./api/.
depends_on:
- postgres
environment:
POSTGRES_URL: postgresql://dagster:dagster@postgres:5432/main
REDIS_ADR: redis
REDIS_PORT: 6379
REDIS_EXPIRE: 3600
networks:
- db
ports:
- 3000:8000
networks:
db:
name: db