Skip to content

Commit

Permalink
return to previous db credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
jts3304-tamu committed Feb 13, 2025
1 parent 28a7807 commit ec93beb
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
x-db-env: &db-env
MYSQL_SERVER: mysql
MYSQL_USER: admin
MYSQL_PASSWORD: admin
MYSQL_DATABASE: default
MYSQL_USER: chemistrycafedev
MYSQL_PASSWORD: chemistrycafe
MYSQL_DATABASE: chemistry_db

services:
mysql:
image: mysql:9.0
container_name: mysql
ports:
- "3306:3306" # MySQL default port
volumes:
- db_data:/var/lib/mysql
- ./init.sql:/docker-entrypoint-initdb.d/init.sql # run initial sql script
environment:
<<: *db-env
MYSQL_ROOT_PASSWORD: chemistrycafefall24
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 10s
Expand All @@ -22,6 +24,7 @@ services:
networks:
- app-network
frontend:
container_name: frontend
build:
context: ./frontend # Path to your front-end repository
dockerfile: Dockerfile
Expand All @@ -48,6 +51,7 @@ services:
path: package.json
command: ["npm", "run", "dev"] # Command for development
backend:
container_name: backend
build:
context: ./backend # Path to your back-end repository
dockerfile: Dockerfile
Expand Down

0 comments on commit ec93beb

Please sign in to comment.