-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
53 lines (49 loc) · 1.1 KB
/
compose.yaml
File metadata and controls
53 lines (49 loc) · 1.1 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
name: wp
services:
nginx:
image: nginx:alpine
build:
context: .
dockerfile: Dockerfile.NGINX
volumes:
- data:/var/www/html
ports:
- 8080:80
depends_on:
- wordpress
restart: unless-stopped
wordpress:
image: wordpress:fpm-alpine
build:
context: .
dockerfile: Dockerfile.wordpress
volumes:
- data:/var/www/html
depends_on:
- mariadb
environment:
WORDPRESS_DB_HOST: mariadb
WORDPRESS_DB_NAME: ${MYSQL_DATABASE}
WORDPRESS_DB_USER: ${MYSQL_USER}
WORDPRESS_DB_PASSWORD: ${MYSQL_PASSWORD}
WORDPRESS_CONFIG_EXTRA: define('WP_MEMORY_LIMIT', '3000M');
restart: unless-stopped
mariadb:
restart: unless-stopped
image: mariadb
volumes:
- db-data:/var/lib/mysql
environment:
#- MYSQL_ROOT_PASSWORD
- MYSQL_RANDOM_ROOT_PASSWORD
- MYSQL_DATABASE
- MYSQL_USER
- MYSQL_PASSWORD
# adminer:
# image: adminer
# restart: unless-stopped
# ports:
# - 8081:8080
volumes:
db-data:
data: