-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (40 loc) · 922 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (40 loc) · 922 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
version: "3.7"
services:
db:
container_name: db
image: postgres:13.1-alpine
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
ports:
- "5432:5432"
volumes:
- db_data:/var/lib/postgresql/data/
back:
container_name: hacknarok_back
depends_on:
- db
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://db:5432/postgres
- SPRING_DATASOURCE_USERNAME=postgres
- SPRING_DATASOURCE_PASSWORD=password
image: maven:3.6.3-jdk-11
command: mvn spring-boot:run
ports:
- "8080:8080"
volumes:
- .:/usr/src/mymaven:rw
working_dir: /usr/src/mymaven
web:
restart: always
stdin_open: true
build: ./frontend
volumes:
- /app/node_modules
- ./frontend:/app
ports:
- "3000:3000"
volumes:
db_data: