-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (37 loc) · 1.04 KB
/
docker-compose.yml
File metadata and controls
41 lines (37 loc) · 1.04 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
version: '3.9'
services:
# Servicio del frontend - aplicación web del cliente
frontend:
build: ./frontend
ports:
- '3000:3000'
volumes:
- ./frontend:/app
environment:
- CHOKIDAR_USEPOLLING=true
depends_on:
- backend
# Servicio del backend - API del servidor
backend:
build: ./backend
ports:
- '8000:8000'
volumes:
- ./backend:/app
environment:
- DATABASE_URL=postgres://postgres:password@db:5432/mydb
depends_on:
- db
# Servicio de base de datos PostgreSQL
db:
image: postgres:14
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: restaurante_db
volumes:
- ./database:/docker-entrypoint-initdb.d
- db-data:/var/lib/postgresql/data
volumes:
db-data: