-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
66 lines (61 loc) · 1.5 KB
/
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
66
services:
app:
image: wodby/php:$PHP_TAG
container_name: "${PROJECT_NAME}-app"
extra_hosts:
- "host.docker.internal:host-gateway"
env_file:
- .env.app
volumes:
- ./src:/var/www/html:cached
cron:
image: wodby/php:$PHP_TAG
container_name: "${PROJECT_NAME}-cron"
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
- app
env_file:
- .env.app
volumes:
- ./src:/var/www/html:cached
- ./docker/conf/cron/crontab:/etc/crontabs/www-data
init: true
command: sudo -E crond -f -d 0
worker:
image: wodby/php:$PHP_TAG
restart: always
scale: 3
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
- app
env_file:
- .env.app
volumes:
- ./src:/var/www/html:cached
init: true
command: php artisan queue:listen -v
node:
image: wodby/node:$NODE_TAG
container_name: "${PROJECT_NAME}-node"
environment:
APP_URL: https://$PROJECT_BASE_URL
volumes:
- ./src:/usr/src/app:cached
command: sh -c 'npm install && npm run dev'
web:
image: wodby/nginx:$NGINX_TAG
container_name: "${PROJECT_NAME}-web"
depends_on:
- app
environment:
NGINX_STATIC_OPEN_FILE_CACHE: "off"
NGINX_BACKEND_HOST: app
NGINX_VHOST_PRESET: laravel
NGINX_SERVER_ROOT: /var/www/html/public
volumes:
- ./src:/var/www/html:cached
redis:
image: redis:$REDIS_TAG
container_name: "${PROJECT_NAME}-redis"