-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (49 loc) · 1.15 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
50
51
52
53
54
55
56
57
58
version: '3.8'
services:
FreelanceAppDatabase:
image: mysql:8.2.0
container_name: FreelanceAppDatabase
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: ${DATABASE_NAME}
MYSQL_USER: ${DATABASE_USERNAME}
MYSQL_PASSWORD: ${DATABASE_PASSWORD}
ports:
- "3309:3306"
volumes:
- ./mysql-data:/var/lib/mysql
restart: unless-stopped
networks:
- freelance-app
FreelanceRestApi:
image: hamzabekkaoui/freelance-rest-api:latest
container_name: FreelanceRestApi
environment:
SPRING_DATASOURCE_URL: ${DATABASE_URL}
SPRING_DATASOURCE_USERNAME: ${DATABASE_USERNAME}
SPRING_DATASOURCE_PASSWORD: ${DATABASE_PASSWORD}
depends_on:
- FreelanceAppDatabase
ports:
- "8090:8090"
expose:
- "8090"
networks:
- freelance-app
FreelanceUi:
container_name: FreelanceUi
image: hamzabekkaoui/freelance-frontend:latest
ports:
- "4201:80"
expose:
- "4201"
networks:
- freelance-app
depends_on:
- FreelanceRestApi
networks:
freelance-app:
driver: bridge
volumes:
mysql-data:
driver: local