Skip to content
Snippets Groups Projects
Commit c3c78d1b authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

docker: add mariadb and phpmyadmin by default

Also enable persistence for redis.

While both are not used by default they can be for the locking
and mesage queue. This should make it easier to get started.
parent 8b7591fe
No related branches found
No related tags found
No related merge requests found
Pipeline #69460 passed
......@@ -31,3 +31,4 @@ the symfony app.
* Open <http://127.0.0.1:8000/> for the API Platform webpage
* Open <http://localhost:8101/> for redis commander
* Open <http://localhost:8102/> for phpmyadmin
......@@ -35,6 +35,9 @@ services:
redis:
image: "redis"
entrypoint: redis-server --save 60 1 --loglevel warning
volumes:
- redis-data:/data
redis-commander:
image: "rediscommander/redis-commander"
......@@ -42,3 +45,26 @@ services:
- REDIS_HOST=redis
ports:
- "8101:8081"
mariadb:
image: mariadb:10.3
volumes:
- mariadb-data:/var/lib/mysql
environment:
- MYSQL_DATABASE=db
- MYSQL_USER=db
- MYSQL_PASSWORD=secret
- MYSQL_ROOT_PASSWORD=root-secret
phpmyadmin:
image: phpmyadmin/phpmyadmin
environment:
- PMA_USER=db
- PMA_PASSWORD=secret
- PMA_HOSTS=mariadb
ports:
- "8102:80"
volumes:
mariadb-data:
redis-data:
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment