-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
64 lines (59 loc) · 1.33 KB
/
docker-compose.prod.yml
File metadata and controls
64 lines (59 loc) · 1.33 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
version: "3.7"
services:
app:
command: [
"supervisord",
"&& php artisan config:cache",
"&& php artisan route:cache",
# "&& php artisan view:cache"
]
environment:
APP_ENV: production
APP_DEBUG: "false"
APP_URL: "https://${VIRTUAL_HOST}"
DB_PORT: 5432
REDIS_PORT: 6379
LOG_CHANNEL: stderr
# PHP-FPM optimizations
# fpm.pool.pm: 'dynamic'
# fpm.pool.pm.max_children: '200'
# fpm.pool.pm.start_servers: '20'
# fpm.pool.pm.min_spare_servers: '20'
# fpm.pool.pm.max_spare_servers: '100'
# fpm.pool.pm.max_requests: '1000'
volumes:
- ./storage:/app/storage
- ./nginx-general.conf:/opt/docker/etc/nginx/vhost.common.d/10-general.conf
- ./nginx-vhost.conf:/opt/docker/etc/nginx/vhost.common.d/10-vhost.conf
networks:
- app
- proxy
deploy:
replicas: 2
worker:
volumes:
- ./storage:/app/storage
networks:
- app
deploy:
replicas: 2
postgres:
networks:
- app
healthcheck:
test: "pg_isready -U ${DB_USERNAME}"
deploy:
mode: global
redis:
networks:
- app
healthcheck:
test: "redis-cli ping"
deploy:
mode: global
networks:
app:
name: "${APP_ID}"
proxy:
external: true
name: "${NETWORK_PROXY}"