Skip to content

Commit

Permalink
Use tmpfs for /var/lib/mysql
Browse files Browse the repository at this point in the history
  • Loading branch information
mstrelan committed Oct 26, 2023
1 parent 4ab89fb commit 083d4b7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ composer:
$(EXEC) composer install

start: stop-php
PHP_VERSION=$(PHP_VERSION) $(DOCKER_COMPOSE) up --build -d
PHP_VERSION=$(PHP_VERSION) $(DOCKER_COMPOSE) up --build -d --wait

stop:
$(DOCKER_COMPOSE) stop
Expand Down
20 changes: 19 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,27 @@ services:
- ./:/data

mysql:
image: skpr/mtk-mysql-empty:latest
image: mysql:latest
network_mode: service:nginx
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 1
MYSQL_USER: local
MYSQL_PASSWORD: local
MYSQL_DATABASE: local
volumes:
- mysql-data:/var/lib/mysql
healthcheck:
test: [ "CMD", "mysql", "-e", "USE local;" ]
interval: 1s
retries: 30

selenium:
image: ${SELENIUM_IMAGE:-selenium/standalone-chrome}
network_mode: service:nginx

volumes:
mysql-data:
driver: local
driver_opts:
type: tmpfs
device: tmpfs

0 comments on commit 083d4b7

Please sign in to comment.