-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-sample.yml
More file actions
75 lines (71 loc) · 1.8 KB
/
docker-compose-sample.yml
File metadata and controls
75 lines (71 loc) · 1.8 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
65
66
67
68
69
70
71
72
73
74
75
services:
website:
image: ghcr.io/asefg482/wp-php-docker:${PHP_VERSION:-8.2}
platform: linux/amd64
env_file:
- .env
ports:
- "${NGINX_PORT:-80}:${NGINX_PORT:-80}"
volumes:
- ./src:/src
- ./data/logs/nginx:/var/log/nginx
- ./data/logs/php:/var/log/php
- ./data/logs/supervisor:/var/log/supervisor
depends_on:
- redis
- memcached
- mariadb
restart: unless-stopped
container_name: wp-php-docker-${PHP_VERSION:-8.2}
mariadb:
image: mariadb:lts
restart: unless-stopped
# ports:
# - "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
MYSQL_DATABASE: ${DB_NAME}
MYSQL_USER: ${DB_USER}
MYSQL_PASSWORD: ${DB_PASSWORD}
volumes:
- ./data/mariadb:/var/lib/mysql
container_name: mariadb
phpmyadmin:
image: phpmyadmin:latest
restart: unless-stopped
environment:
PMA_HOST: mariadb
PMA_PORT: 3306
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
PMA_ABSOLUTE_URI: ${PMA_ABSOLUTE_URI:-}
volumes:
- ./data/logs/phpmyadmin:/var/log/apache2
depends_on:
- mariadb
ports:
- "${PMA_PORT:-8080}:80"
# labels:
# - "traefik.enable=false"
container_name: phpmyadmin
redis:
image: redis:alpine
restart: unless-stopped
command: >
redis-server
--requirepass ${REDIS_PASSWORD}
--maxmemory ${REDIS_MAX_MEMORY}
--maxmemory-policy ${REDIS_MAX_MEMORY_POLICY}
--save 900 1
--save 300 10
--save 60 10000
volumes:
- ./data/redis:/data
container_name: redis
memcached:
image: memcached:alpine
restart: unless-stopped
command: >
memcached
-m ${MEMCACHED_MEMORY}
-c ${MEMCACHED_MAX_CONNECTIONS}
container_name: memcached