initial creation of Dockerfile and docker-compose.yml
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
version: '3'
|
||||
services:
|
||||
db:
|
||||
image: mariadb:latest
|
||||
container_name: mariadb-container
|
||||
env_file:
|
||||
- .env
|
||||
|
||||
ports:
|
||||
- "3306:3306" # Map MariaDB port to host if needed
|
||||
volumes:
|
||||
- ./db:/var/lib/mysql # Mount a volume for MariaDB data
|
||||
|
||||
app:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- "5000:5000"
|
||||
env_file:
|
||||
- .env
|
||||
depends_on:
|
||||
- db
|
||||
|
||||
Reference in New Issue
Block a user