Skip to content

Commit

Permalink
first deployment via CICD 4
Browse files Browse the repository at this point in the history
  • Loading branch information
itsrcx committed Jun 1, 2024
1 parent 24dc267 commit f5fec72
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
version: '3'
# version: '3'

services:
mysqldb:
image: mysql:latest
container_name: blog_db
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: blogdb
MYSQL_USER: joyboy
MYSQL_PASSWORD: password
ports:
- "3306:3366"
volumes:
- blog_data:/var/lib/mysql
# services:
# mysqldb:
# image: mysql:latest
# container_name: blog_db
# environment:
# MYSQL_ROOT_PASSWORD: root
# MYSQL_DATABASE: blogdb
# MYSQL_USER: joyboy
# MYSQL_PASSWORD: password
# ports:
# - "3306:3366"
# volumes:
# - blog_data:/var/lib/mysql

web:
build:
context: .
dockerfile: Dockerfile
command: python manage.py runserver 0.0.0.0:8000
volumes:
- ./src:/app # Adjust this path based on your project structure
ports:
- "8001:8000"
depends_on:
- mysqldb
links:
- mysqldb
container_name: blog_web
# web:
# build:
# context: .
# dockerfile: Dockerfile
# command: python manage.py runserver 0.0.0.0:8000
# volumes:
# - ./src:/app # Adjust this path based on your project structure
# ports:
# - "8001:8000"
# depends_on:
# - mysqldb
# links:
# - mysqldb
# container_name: blog_web

volumes:
blog_data:
# volumes:
# blog_data:

0 comments on commit f5fec72

Please sign in to comment.