-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (40 loc) · 1.05 KB
/
Copy pathdocker-compose.yml
File metadata and controls
40 lines (40 loc) · 1.05 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
version: "3.8"
services:
frontend:
image: node:alpine
container_name: frontend
entrypoint: /bin/sh
ports:
- 5173:5173
working_dir: /srv/app
volumes:
- type: bind
source: ./frontend
target: /srv/app
tty: true
app:
image: "academy-api"
build:
context: ./backend/src/main/docker
container_name: app
depends_on:
- db
environment:
- spring.datasource.url=jdbc:postgresql://db:5432/compose
- spring.datasource.username=compose
- spring.datasource.password=compose
- spring.jpa.hibernate.ddl-auto=update
- spring.jpa.hibernate.ddl-auto=create-drop
- spring.jpa.show-sql=true
- spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
- spring.jpa.properties.hibernate.format_sql=true
- server.error.include-message=always
ports:
- "8080:8080"
db:
image: "postgres:16-alpine"
restart: always
container_name: db
environment:
- POSTGRES_USER=compose
- POSTGRES_PASSWORD=compose