-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml.DISABLED
More file actions
51 lines (47 loc) · 1.28 KB
/
Copy pathdocker-compose.dev.yml.DISABLED
File metadata and controls
51 lines (47 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
version: '3.7'
services:
app:
build:
context: .
dockerfile: Dockerfile.dev # Make sure the Dockerfile is in the same directory
hostname: tastyrhodos
ports:
- 8080:80 # Expose port 8080 for local access
environment:
- APP_URL=http://localhost:8080
- DB_CONNECTION=mysql
- DB_HOST=db
- DB_DATABASE=tastyigniter
- DB_USERNAME=tastyigniter
- DB_PASSWORD=somepassword
- CACHE_DRIVER=redis
- REDIS_HOST=redis
volumes:
- ../app:/var/www/html # Bind mount app folder to container
- ../data/storage:/var/www/html/storage # Bind mount storage folder
depends_on:
- db
- redis
restart: unless-stopped
db:
image: mariadb:10.7
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=yes
- MYSQL_DATABASE=tastyigniter
- MYSQL_USER=tastyigniter
- MYSQL_PASSWORD=somepassword
volumes:
- ../data/db:/var/lib/mysql # Persistent DB storage
ports:
- 3306:3306 # Expose DB on port 3306
restart: unless-stopped
redis:
image: redis:6
command: redis-server --maxmemory 256mb --maxmemory-policy allkeys-lru
volumes:
- ../data/redis:/data # Redis persistent storage
restart: unless-stopped
volumes:
app-data:
db-data:
redis-data: