forked from K-scrum-team-5/kscrum-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (45 loc) · 1.03 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
version: '3.3'
services:
backend:
stdin_open: true
tty: true
build:
context: .
dockerfile: Dockerfile.Backend
container_name: movie-backend-1
ports:
- "8080:8080"
volumes:
- ./src:/app/src
- ./gradle:/app/gradle
- ./build:/app/build
- ./gradlew:/app/gradlew
- ./gradlew.bat:/app/gradlew.bat
- ./build.gradle:/app/build.gradle
- ./settings.gradle:/app/settings.gradle
env_file:
- .env
environment:
- tmdb.api.key=${TMDB_API_KEY}
- DB.URL=${DB_URL}
- DB.USERNAME=${DB_USERNAME}
- DB.PASSWORD=${DB_PASSWORD}
- ML.API.URL=${ML_API_URL}
restart: always
mysql:
image: mysql:5.7
container_name: movie-db-1
env_file:
- .env
environment:
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_DATABASE: ${DB_NAME}
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
volumes:
- mysql-db:/var/lib/mysql
ports:
- "3306:3306"
restart: always
volumes:
mysql-db: