-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (30 loc) · 875 Bytes
/
docker-compose.yml
File metadata and controls
33 lines (30 loc) · 875 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
version: '2'
services:
app:
# image: 'docker-spring-boot-postgres:latest'
ports:
- 8080:8080
build:
context: Backend
container_name: app
depends_on:
- db
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://db:5432/compose-postgres
- SPRING_DATASOURCE_USERNAME=compose-postgres
- SPRING_DATASOURCE_PASSWORD=compose-postgres
- SPRING_JPA_HIBERNATE_DDL_AUTO=create
db:
image: 'postgres:13.1-alpine'
container_name: db
environment:
- POSTGRES_USER=compose-postgres
- POSTGRES_PASSWORD=compose-postgres
frontend:
image: 'nginx:1.19.6-alpine'
container_name: frontend
ports:
- 80:80
volumes:
- ./Frontend/dist/frontend:/usr/share/nginx/html
# - ./Frontend/nginx-fix.conf:/etc/nginx/conf.d/default.conf