forked from FernandaOsorioMorales/AvanzaAppWeb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
42 lines (39 loc) · 881 Bytes
/
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
# Development compose file
# When ready to deploy make sure to set a permanent volume
services:
db:
image: postgres:latest
ports:
- "5432:5432"
environment:
POSTGRES_USER: "${dbUser}"
PGUSER: "${dbUser}"
POSTGRES_PASSWORD: "${dbPassword}"
POSTGRES_NAME: "${dbName}"
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 4s
back:
build: ./backend
ports:
- "9090:9090"
environment:
POSTGRES_USER: "${dbUser}"
POSTGRES_PASSWORD: "${dbPassword}"
POSTGRES_NAME: "${dbName}"
POSTGRES_PORT: "5432"
depends_on:
db:
condition: service_healthy
develop:
watch:
- action: rebuild
path: ./backend
front:
build: ./frontend
ports:
- "8080:8080"
develop:
watch:
- action: rebuild
path: ./frontend