-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
88 lines (83 loc) · 2.06 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
version: '3.3'
services:
mysql:
image: mysql:8.0
restart: always
container_name: mysql
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
volumes:
- mysql_data:/var/lib/mysql
- mysql_logs:/var/log/mysql
deploy:
resources:
limits:
cpus: '0.5'
memory: '1G' # 1GB -- increase this value if needed and your server supports it
nginx-proxy:
image: jwilder/nginx-proxy
container_name: nginx-proxy
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- certs:/etc/nginx/certs:ro
- vhost.d:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- nginx-logs:/var/log/nginx
- ./custom-nginx.conf:/etc/nginx/conf.d/custom.conf:ro
deploy:
resources:
limits:
cpus: '0.5'
memory: '512M'
letsencrypt:
image: nginxproxy/acme-companion:2.2
container_name: letsencrypt
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- acme:/etc/acme.sh
- certs:/etc/nginx/certs:rw
- vhost.d:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
depends_on:
- nginx-proxy
environment:
- NGINX_PROXY_CONTAINER=nginx-proxy
- DEFAULT_EMAIL=${LETSENCRYPT_EMAIL}
deploy:
resources:
limits:
cpus: '0.1'
memory: '128M'
appgini-app:
depends_on:
- mysql
image: php-8.3-apache
container_name: appgini-app
volumes:
- ./app:/var/www/html
- php_sessions:/tmp
environment:
VIRTUAL_HOST: ${TOP_DOMAIN}
LETSENCRYPT_HOST: ${TOP_DOMAIN}
LETSENCRYPT_EMAIL: ${LETSENCRYPT_EMAIL}
build:
dockerfile: Dockerfile
command: sh -c "chown -R www-data:www-data /var/www/html && apache2-foreground"
deploy:
resources:
limits:
cpus: '0.5'
memory: '512M' # 512MB -- increase this value if needed and your server supports it
volumes:
nginx-logs:
mysql_data:
mysql_logs:
acme:
certs:
vhost.d:
php_sessions:
html: