-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-nginx-v1.yml
42 lines (42 loc) · 1.11 KB
/
docker-compose-nginx-v1.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
services:
db:
# We use a mariadb image which supports both amd64 & arm64 architecture
image: mariadb:10.6.4-focal
# If you really want to use MySQL, uncomment the following line
#image: mysql:8.0.27
command: '--default-authentication-plugin=mysql_native_password'
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
- MYSQL_ROOT_PASSWORD=KuscpLEPdLDtGqx3mdgH
- MYSQL_DATABASE=berkplastik
- MYSQL_USER=wp-bp
- MYSQL_PASSWORD=xeLj7NKMu5VX5zxL4tiO
expose:
- 3306
wordpress:
image: wordpress:php8.3-fpm
#ports:
#- 80:80
volumes:
- wordpress:/var/www/html
restart: always
environment:
- WORDPRESS_DB_HOST=db
- WORDPRESS_DB_USER=wp-bp
- WORDPRESS_DB_PASSWORD=xeLj7NKMu5VX5zxL4tiO
- WORDPRESS_DB_NAME=berkplastik
webserver:
image: nginx:latest
ports:
- "80:80"
# - 443:443
restart: always
volumes:
- ./conf.d/nginx/:/etc/nginx/conf.d/:ro
- wordpress:/var/www/html
# - ./certbot/www/:/var/www/certbot/:ro
volumes:
db_data:
wordpress: