You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
829 B

version: "3.8"
services:
app:
build:
context: .
ports:
- "8080:80"
volumes:
- "./src:/var/www/html"
depends_on:
- db
environment:
EMAIL_FROM: projects@mydomain.com
SMTP_HOST: smtp.yourdomain.com
SMTP_PORT: 587
SMTP_USER: username
SMTP_PASS: password
MYSQL_USER: project_user
MYSQL_PASSWORD: NJKL8fe9nownO82IK2
db:
image: mariadb:10.6
environment:
MYSQL_ROOT_PASSWORD: f8989898989whv4vhsGEFi39
MYSQL_DATABASE: projects
MYSQL_USER: project_user
MYSQL_PASSWORD: NJKL8fe9nownO82IK2
volumes:
- db_data:/var/lib/mysql # Persist the database data
- ./db-init:/docker-entrypoint-initdb.d
ports:
- "3306:3306"
volumes:
db_data: # Named volume for database persistence

Powered by TurnKey Linux.