-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
executable file
·48 lines (44 loc) · 1.22 KB
/
docker-compose.yaml
File metadata and controls
executable file
·48 lines (44 loc) · 1.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
version: '3'
services:
app:
build: ./docker/app/
ports:
- "${APP_PORT}:80"
- "${SSL_PORT}:443"
- "${MAIL_PORT}:25"
volumes:
- .:/var/www/app
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
env_file: '.env'
container_name: app
links:
- database
- redis
certbot:
image: certbot/certbot
volumes:
- .:/var/www/app
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
container_name: certbot
command: certonly --webroot --webroot-path=/var/www/app/public --email mahtonu@gmail.com --agree-tos --no-eff-email --force-renewal -d phpxperts.net -d www.phpxperts.net
database:
image: mysql:5.7
environment:
- "MYSQL_ROOT_PASSWORD=${DB_PASSWORD}"
- "MYSQL_DATABASE=${DB_DATABASE}"
- TZ=Asia/Dhaka
volumes:
- ${BACKUP_PATH}/mysql:/var/lib/mysql
ports:
- ${DB_PORT_EXPOSE}:3306
container_name: db
redis:
image: "redis:latest"
volumes:
- ${BACKUP_PATH}/redis:/data
command: redis-server --requirepass ${REDIS_PASSWORD}
ports:
- ${REDIS_PORT_EXPOSE}:6379
container_name: redis