Skip to content

Commit

Permalink
Persist mysql db (#148)
Browse files Browse the repository at this point in the history
* persist mysql to let us restart and keep state

* restart mysql if it stops
  • Loading branch information
epugh authored Apr 25, 2023
1 parent ad5281a commit 4231a5d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ services:
- OTEL_EXPORTER_JAEGER_ENDPOINT=http://jaeger:14268/api/traces
depends_on:
- solr1
# - jaeger

mysql:
container_name: mysql
Expand All @@ -29,6 +28,8 @@ services:
- MYSQL_ROOT_PASSWORD=password
volumes:
- ./mysql/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
- ./volumes/mysql_data:/var/lib/mysql
restart: always
healthcheck:
test: "/usr/bin/mysql --user=root --password=password --execute \"SHOW DATABASES;\""
interval: 10s
Expand Down

0 comments on commit 4231a5d

Please sign in to comment.