-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.develop.yml
More file actions
98 lines (92 loc) · 2.22 KB
/
Copy pathdocker-compose.develop.yml
File metadata and controls
98 lines (92 loc) · 2.22 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
version: '3.6'
services:
nginx:
image: nginx:1.19-alpine
container_name: default-structure-nginx
restart: always
volumes:
- ./public:/var/www/public
- ./nginx.develop.conf:/etc/nginx/nginx.conf
ports:
- 80:80
depends_on:
- app
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
app:
build:
context: .
args:
- COMPOSER_FLAGS=--prefer-dist --optimize-autoloader
command: /usr/local/sbin/php-fpm
container_name: default-structure-app
restart: always
ports:
- 9000:9000
environment:
- OPCACHE_SAVE_COMMENTS=1
- OPCACHE_VALIDATE_TIMESTAMPS=1
- OPCACHE_REVALIDATE_FREQ=0
volumes:
- .:/var/www
- ./php.ini:/usr/local/etc/php/php.ini
- ./www.conf:/usr/local/etc/php-fpm.d/www.conf
depends_on:
- pgsql
- redis
schedule:
image: ibrunotome/php:8.0
container_name: default-structure-schedule
restart: always
command:
- /bin/bash
- -c
- |
chmod +x schedule.sh
/var/www/schedule.sh
environment:
- OPCACHE_SAVE_COMMENTS=0
- OPCACHE_VALIDATE_TIMESTAMPS=0
- OPCACHE_REVALIDATE_FREQ=0
volumes:
- .:/var/www
- ./php.ini:/usr/local/etc/php/php.ini
depends_on:
- pgsql
- redis
queue:
image: ibrunotome/php:8.0
container_name: default-structure-queue
restart: always
command: php artisan horizon
environment:
- OPCACHE_SAVE_COMMENTS=0
- OPCACHE_VALIDATE_TIMESTAMPS=0
- OPCACHE_REVALIDATE_FREQ=0
volumes:
- .:/var/www
- ./php.ini:/usr/local/etc/php/php.ini
depends_on:
- pgsql
- redis
pgsql:
image: launcher.gcr.io/google/postgresql13
container_name: default-structure-pgsql
ports:
- 5432:5432
environment:
POSTGRES_DB: default
POSTGRES_USER: default
POSTGRES_PASSWORD: default
volumes:
- pg-data:/var/lib/postgresql/data
redis:
image: library/redis:6.0.10-alpine
container_name: default-structure-redis
restart: always
ports:
- 6379:6379
volumes:
- redis-data:/data
volumes:
pg-data:
redis-data: