-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
executable file
·56 lines (52 loc) · 1.02 KB
/
docker-compose.yaml
File metadata and controls
executable file
·56 lines (52 loc) · 1.02 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
services:
psos:
build:
context: ./
dockerfile: Dockerfile
ports:
- "80:8080"
volumes:
- psosSrc:/home/javauser/java
depends_on:
- db
- vue
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://db:5432/user12
- SPRING_DATASOURCE_USERNAME=user12
- SPRING_DATASOURCE_PASSWORD=user
- SPRING_JPA_HIBERNATE_DDL_AUTO=update
db:
image: 'postgres:14.1-alpine'
container_name: db
environment:
- POSTGRES_USER=user12
- POSTGRES_PASSWORD=user
ports:
- '5432:5432'
vue:
build:
context: ./
dockerfile: DockerfileFront
volumes:
- psos-vue:/home/vueuser/vue
ports:
- '3000:3000'
volumes:
psosSrc:
driver: local
driver_opts:
o: bind
type: none
device: ${PWD}/
db:
driver: local
driver_opts:
o: bind
type: none
device: ${PWD}/postgresql/
psos-vue:
driver: local
driver_opts:
o: bind
type: none
device: ${PWD}/vue/