-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
65 lines (58 loc) · 1.37 KB
/
docker-compose.yaml
File metadata and controls
65 lines (58 loc) · 1.37 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.9'
services:
mysql:
image: mysql:8.0
container_name: mysql8
restart: unless-stopped
env_file: .env
volumes:
- dbfile:/var/lib/mysql
command: '--default-authentication-plugin=mysql_native_password'
networks:
- app
wp:
image: wordpress:5.7.0-php8.0-fpm
container_name: wordpress-5.7.0-php8.0-fpm
depends_on:
- mysql
restart: unless-stopped
env_file: .env
environment:
- WORDPRESS_DB_HOST=mysql:3306
- WORDPRESS_DB_USER=$MYSQL_USER
- WORDPRESS_DB_PASSWORD=$MYSQL_PASSWORD
- WORDPRESS_DB_NAME=$MYSQL_DATABASE
volumes:
- www-html:/var/www/html
networks:
- app
nginx:
image: nginx:1.19.8-alpine
depends_on:
- wp
container_name: nginx
restart: unless-stopped
ports:
- "80:80"
volumes:
- www-html:/var/www/html
- ./nginx-conf.d:/etc/nginx/conf.d
- etc-letsencrypt:/etc/letsencrypt
networks:
- app
certbot:
image: certbot/certbot
depends_on:
- nginx
container_name: certbot
volumes:
- etc-letsencrypt:/etc/letsencrypt
- www-html:/var/www/html
command: certonly --webroot --webroot-path=/var/www/html --email pavlenko.at@mail.ru --agree-tos --no-eff-email -d test.world-itech.ru
volumes:
www-html:
dbfile:
etc-letsencrypt:
networks:
app:
driver: bridge