Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-capstone-design1
/
Triz_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
sdy
2020-04-21 00:31:15 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7cc1b5770e257cf88be8dad50f09e1d0b5f62084
7cc1b577
1 parent
15e2115c
update docker-compose.yml
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
docker-compose.yml
docker-compose.yml
View file @
7cc1b57
...
...
@@ -5,27 +5,29 @@ services:
container_name
:
mysql
ports
:
-
3306:3306
expose
:
-
"
3306"
restart
:
always
environment
:
MYSQL_DATABASE
:
$${MYSQL_DATABASE}
MYSQL_ROOT_PASSWORD
:
$${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE
:
prisma
MYSQL_ROOT_PASSWORD
:
prisma
volumes
:
-
/var/lib/mysql
prisma
:
links
:
-
"
mysql"
-
mysql
depends_on
:
-
mysql
container_name
:
prisma
command
:
-
ports
:
-
"
5555:5555"
build
:
context
:
back/prisma
dockerfile
:
Dockerfile
environment
:
MYSQL_URL
:
$${MYSQL_URL}
MYSQL_URL
:
${MYSQL_URL}
MYSQL_DATABASE
:
prisma
MYSQL_ROOT_PASSWORD
:
prisma
volumes
:
-
/app/prisma
backend
:
...
...
@@ -33,7 +35,6 @@ services:
-
mysql
depends_on
:
-
mysql
-
prisma
container_name
:
backend
ports
:
-
"
4000:4000"
...
...
@@ -41,8 +42,8 @@ services:
context
:
back
dockerfile
:
Dockerfile
environment
:
MYSQL_URL
:
$
$
{MYSQL_URL}
FRONTEND_URL
:
$
$
{FRONTEND_URL}
MYSQL_URL
:
${MYSQL_URL}
FRONTEND_URL
:
${FRONTEND_URL}
volumes
:
-
./back:/app
-
./back/node_modules:/app/node_modules
...
...
@@ -55,7 +56,7 @@ services:
context
:
front
dockerfile
:
Dockerfile
environment
:
BACKEND_URL
:
$
$
{BACKEND_URL}
BACKEND_URL
:
${BACKEND_URL}
volumes
:
-
./front:/app
-
./front/node_modules:/app/node_modules
...
...
Please
register
or
login
to post a comment