-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.prod.yaml
47 lines (45 loc) · 1.44 KB
/
compose.prod.yaml
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
services:
database:
restart: unless-stopped
deploy:
resources:
limits:
cpus: '0.3'
memory: 350M
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 10
window: 5s
apache:
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
# Shared files between deploys
# - source_uploads:/var/www/html/public/uploads # For example files uploaded by users
## Certs
# - ./.docker/apache/conf/localhost.crt:/usr/local/apache2/conf/localhost.crt:ro
# - ./.docker/apache/conf/localhost.key:/usr/local/apache2/conf/localhost.key:ro
## Conf
- ./.docker/apache/conf/prod/server_name.conf:/usr/local/apache2/conf/d/server-name.conf:ro
- ./.docker/apache/sites/prod/certs.conf:/usr/local/apache2/conf/sites/prod-certs.conf:ro
## Sites
- ./.docker/apache/sites/prod/000-default.conf:/usr/local/apache2/conf/sites/000-default.conf:ro
- ./.docker/apache/sites/prod/default-ssl.conf:/usr/local/apache2/conf/sites/default-ssl.conf:ro
deploy:
resources:
limits:
cpus: '0.5'
memory: 500M
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 10
window: 5s
php:
restart: unless-stopped
# volumes:
# Shared files between deploys
# - source_uploads:/var/www/html/public/uploads # For example files uploaded by users