-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (45 loc) · 1.04 KB
/
docker-compose.yml
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
version: '3'
services:
database:
image: mariadb
container_name: database
environment:
MYSQL_DATABASE: 'testdb'
MYSQL_PASSWORD: '#adminadmin1'
MYSQL_ROOT_PASSWORD: '#adminadmin1'
ports:
- '3306:3306'
volumes:
- dockerAngularSpringDatabaseData:/var/lib/mysql
networks:
- backendNetwork
backend:
image: openjdk:8-jdk-alpine
container_name: backend
ports:
- "8080:8080"
depends_on:
- database
volumes:
- ./backend/target/spring-boot-jwt-0.0.1-SNAPSHOT.jar:/application.jar
command: ["java","-jar","/application.jar"]
networks:
- backendNetwork
- frontendNetwork
frontend:
image: nginx:alpine
container_name: frontend
ports:
- "4200:80"
depends_on:
- backend
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./frontend/dist/user-management:/usr/share/nginx/html
networks:
- frontendNetwork
volumes:
dockerAngularSpringDatabaseData:
networks:
backendNetwork:
frontendNetwork: