Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
version: '3.8'

services:
php-apache:
image: php:apache
ports:
- "8080:80"
volumes:
- ./php:/var/www/html
restart: always

mysql:
image: mysql:latest
environment:
MYSQL_ROOT_PASSWORD: test
MYSQL_DATABASE: SQLpunto2
MYSQL_USER: my_user
MYSQL_PASSWORD: my_password
ports:
- "3306:3306"
volumes:
- db-data:/var/lib/mysql
restart: always

volumes:
db-data: