Skip to content

Commit

Permalink
Small Docker compose file improvements (#24)
Browse files Browse the repository at this point in the history
* Make the compose file more lean

* Use Docker Volumes for data storage
  • Loading branch information
dmohns authored Jan 24, 2024
1 parent 947e512 commit 5c425e6
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: "3.1"
version: "3"

services:
'laravel':
laravel:
container_name: laravel
build:
context: Docker/
Expand All @@ -18,7 +18,7 @@ services:
- ./Website/config/php/php.ini:/usr/local/etc/php/php.ini
- ./Website/htdocs:/var/www/html

'ui':
ui:
container_name: ui
build:
context: ./Website/ui/
Expand All @@ -29,7 +29,7 @@ services:
- ./Website/ui:/usr/app/
- frontend_node_modules:/usr/app/node_modules/

'cron':
cron:
container_name: cron_job
build:
context: Docker/
Expand All @@ -44,7 +44,7 @@ services:
- ./Website/config/php/php.ini:/usr/local/etc/php/php.ini
- ./Website/htdocs:/var/www/html

'worker':
worker:
container_name: worker
restart: unless-stopped
build:
Expand All @@ -69,18 +69,19 @@ services:
volumes:
- ./Website/htdocs/mpmanager:/app

'redis':
redis:
container_name: redis
image: redis:5
volumes:
- ./redis/:/data
- redis_data:/data

'maria':
maria:
container_name: maria
image: mariadb:10.3
env_file:
- ./Docker/.env
volumes:
- ./DB/mysql:/var/lib/mysql
- mariadb_data:/var/lib/mysql
ports:
- 3307:3306

Expand Down Expand Up @@ -112,3 +113,5 @@ services:

volumes:
frontend_node_modules:
mariadb_data:
redis_data:

0 comments on commit 5c425e6

Please sign in to comment.