-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
59 lines (55 loc) · 1.25 KB
/
docker-compose.yaml
File metadata and controls
59 lines (55 loc) · 1.25 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
version: "3.9"
services:
frankenphp:
build: ./frankenphp
container_name: frankenphp-wp
restart: always
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost"]
interval: 1m30s
timeout: 10s
retries: 3
start_period: 40s
start_interval: 5s
# --- Início da Inserção ---
deploy:
resources:
limits:
cpus: ${CPU_LIMIT}
memory: ${MEMORY_LIMIT}
# --- Fim da Inserção ---
volumes:
- ./wordpress:/app/public
environment:
DB_HOST: mariadb
DB_NAME: wordpress
DB_USER: wpuser
DB_PASSWORD: wppassword
WP_ENV: production
WP_HOME: ${WP_HOME}
WP_SITEURL: ${WP_SITEURL}
SERVER_NAME: ${SERVER_NAME}
depends_on:
- mariadb
- redis
mariadb:
image: mariadb:11
container_name: mariadb-wp
restart: always
environment:
MYSQL_ROOT_PASSWORD: rootpass
MYSQL_DATABASE: wordpress
MYSQL_USER: wpuser
MYSQL_PASSWORD: wppassword
volumes:
- mariadb_data:/var/lib/mysql
redis:
image: redis:7
container_name: redis-wp
restart: always
command: ["redis-server", "--appendonly", "yes"]
volumes:
- redis_data:/data
volumes:
mariadb_data:
redis_data: