-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
65 lines (59 loc) · 1.53 KB
/
docker-compose.yml
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
services:
web:
build:
context: ./.docker/php
dockerfile: Dockerfile
network: host
image: tuhfah-webapp
volumes:
- .:/var/www:cached
queue:
image: tuhfah-webapp
restart: always
depends_on:
- web
volumes:
- .:/var/www
command: php artisan queue:work
schedule:
image: tuhfah-webapp
restart: always
depends_on:
- web
volumes:
- .:/var/www
command: php artisan schedule:run
nginx:
image: nginx
restart: always
ports:
- 80:80
volumes:
- .:/var/www
- .docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
- .docker/nginx/nginx.conf:/etc/nginx/nginx.conf
depends_on:
- web
db:
image: mysql:8.1
restart: always
ports:
- 3306:3306
volumes:
- mysql-data:/var/lib/mysql
- .docker/logs:/var/log/mysql
- .docker/db/my.cnf:/etc/mysql/conf.d/my.cnf
- .docker/db/sql:/docker-entrypoint-initdb.d
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: tuhfahwebapp
MYSQL_USER: tuhfahwebapp
MYSQL_PASSWORD: tuhfahwebapp
redis:
image: redis:latest
restart: always
command: redis-server --appendonly yes
volumes:
- .docker/redis/data:/data
volumes:
mysql-data: