Skip to content

Commit

Permalink
chore: set front compose up
Browse files Browse the repository at this point in the history
  • Loading branch information
chloe1129 committed Jul 26, 2022
1 parent 673bc7f commit a936ea8
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,27 @@ volumes:
mysql_data:

services:
mysqldb:
build: ./db
env_file:
- "./db/db.env"
ports:
- "8989:3306"
volumes:
- "mysql_data:/var/lib/mysql"
backend:
build: ./backend
command: >
bash -c "python wait_mysql.py &&
python manage.py makemigrations &&
python manage.py migrate &&
python manage.py runserver 0.0.0.0:8080"
ports:
- "8080:8080"
volumes:
- ./backend:/app
depends_on:
- mysqldb
# mysqldb:
# build: ./db
# env_file:
# - "./db/db.env"
# ports:
# - "8989:3306"
# volumes:
# - "mysql_data:/var/lib/mysql"
# backend:
# build: ./backend
# command: >
# bash -c "python wait_mysql.py &&
# python manage.py makemigrations &&
# python manage.py migrate &&
# python manage.py runserver 0.0.0.0:8080"
# ports:
# - "8080:8080"
# volumes:
# - ./backend:/app
# depends_on:
# - mysqldb
frontend:
build: ./frontend
command: ["npm", "start"]
Expand Down

0 comments on commit a936ea8

Please sign in to comment.