-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (41 loc) · 888 Bytes
/
docker-compose.yml
File metadata and controls
45 lines (41 loc) · 888 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
44
45
services:
db:
image: postgres:15
restart: unless-stopped
environment:
POSTGRES_DB: Orienta
POSTGRES_USER: postgres
POSTGRES_PASSWORD: steve
volumes:
- db_data:/var/lib/postgresql/data
- ./backend/Base:/docker-entrypoint-initdb.d:ro
ports:
- "5432:5432"
backend:
build:
context: ./backend
dockerfile: Dockerfile
depends_on:
- db
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://db:5432/Orienta
SPRING_DATASOURCE_USERNAME: postgres
SPRING_DATASOURCE_PASSWORD: steve
SERVER_PORT: 8080
ports:
- "8080:8080"
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
depends_on:
- backend
environment:
NODE_ENV: production
ports:
- "3000:3000"
volumes:
db_data:
networks:
default:
name: Orienta_network