-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
44 lines (39 loc) · 862 Bytes
/
Copy pathcompose.yaml
File metadata and controls
44 lines (39 loc) · 862 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.8"
services:
react-app:
build: ./app-react
ports:
- "3000:90"
depends_on:
- api-node
- api-python
api-node:
build: ./api-node
ports:
- "4002:4002"
environment:
- DATABASE_URL=postgres://user:password@db:5432/mydatabase
depends_on:
db:
condition: service_healthy
api-python:
build: ./api-python
ports:
- "4001:4001"
environment:
- DATABASE_URL=postgres://user:password@db:5432/mydatabase
depends_on:
db:
condition: service_healthy
db:
image: postgres:15
restart: always
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: mydatabase
healthcheck:
test: ["CMD-SHELL", "pg_isready -U user -d mydatabase"]
interval: 5s
retries: 5
start_period: 10s