-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
68 lines (63 loc) · 1.69 KB
/
docker-compose.yaml
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
version: "3.1"
services:
innai-website:
image: innai-website:1.0
restart: always
build:
context: ./website
dockerfile: Dockerfile
ports:
- 80:8080
environment:
- PREDICT_SERVER_BASE_URL=http://innai-server:8080/api/V1
networks:
- frontend
innai-server:
image: innai-server:1.0
restart: always
build:
context: ./server/InnAi.Server/
dockerfile: Dockerfile
ports:
- 8080:8080
environment:
ConnectionStrings__DefaultConnection: ${INNAI_SERVER_CONNECTION_STRING}
ApiClients__InnAiPredictionClient__BaseUrl: http://innai-predict:8000
depends_on:
innai-db:
condition: service_healthy
networks:
- backend
- frontend
innai-db:
image: postgres:${PSQL_TAG}
restart: always
ports:
- 5433:5432
volumes:
- ./mount/psql:/var/lib/postgresql/data
environment:
POSTGRES_USER: ${PSQL_USER}
POSTGRES_PASSWORD: ${PSQL_PASSWORD}
POSTGRES_DB: ${PSQL_DATABASE}
healthcheck:
test:
["CMD-SHELL", "pg_isready -U ${PSQL_USER} -d ${PSQL_DATABASE}"]
interval: 10s
timeout: 5s
retries: 5
networks:
- backend
innai-predict:
image: innai-predict:1.0
restart: always
build:
context: ./innai
dockerfile: Dockerfile
ports:
- 8000:8000
networks:
- backend
networks:
frontend:
backend: