-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
42 lines (35 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
version: "3"
services:
ECommerceDataBase:
image: mysql:8.0
container_name: ECommerceDataBase
environment:
MYSQL_ROOT_PASSWORD: ${DATABASE_ROOT_PASSWORD}
MYSQL_DATABASE: ${DATABASE_NAME}
MYSQL_USER: ${DATABASE_USERNAME}
MYSQL_PASSWORD: ${DATABASE_PASSWORD}
ports:
- "${DATABASE_MAPPING_PORT}:${DATABASE_DEFAULT_PORT}"
volumes:
- ./ECommerceDataBase/data:/var/lib/mysql
networks:
- ECommerceAppNetwork
ECommerceRestApi:
image: hamzabekkaoui/ecommerce-restapi:latest
container_name: ECommerceRestApi
ports:
- "${RESTAPI_MAPPING_PORT}:${RESTAPI_DEFAULT_PORT}"
environment:
SPRING_PROFILES_ACTIVE: dev
DATABASE_URL: ${DATABASE_URL}
DATABASE_USERNAME: ${DATABASE_USERNAME}
DATABASE_PASSWORD: ${DATABASE_PASSWORD}
SECURITY_JWT_SECRET_KEY: ${SECURITY_JWT_SECRET_KEY}
SERVER_PORT: ${RESTAPI_DEFAULT_PORT}
depends_on:
- ECommerceDataBase
networks:
- ECommerceAppNetwork
networks:
ECommerceAppNetwork:
driver: bridge