-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (35 loc) · 880 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
38 lines (35 loc) · 880 Bytes
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
version: '3'
services:
web:
build:
context: ./config/docker/web
dockerfile: Dockerfile
container_name: web
restart: unless-stopped
env_file:
- ./.env
ports:
- 8888:80
volumes:
- ./app/:/var/www
- ./config/docker/apache/etc/apache2/sites-available:/etc/apache2/sites-available
redis:
build: ./config/docker/redis
restart: unless-stopped
container_name: redis
env_file:
- ./.env
volumes:
- ./app/storage/redis:/data
- ./config/docker/redis/redis.conf:/usr/local/etc/redis/redis.conf
db:
build: ./config/docker/mysql
container_name: mysql
env_file:
- ./.env
volumes:
- ./app/storage/mysql:/var/lib/mysql
- ./config/docker/mysql/conf.d:/etc/mysql/conf.d
- ./app/storage/logs/mysql:/var/log/mysql
ports:
- "33061:3306"