forked from rhubarbgroup/redis-cache
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
48 lines (48 loc) · 1.29 KB
/
docker-compose.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
43
44
45
46
47
48
version: '3.5'
services:
mariadb:
image: 'bitnami/mariadb:10.3'
volumes:
- 'mariadb_data:/bitnami/mariadb'
environment:
MARIADB_USER: bn_wordpress
MARIADB_DATABASE: bitnami_wordpress
ALLOW_EMPTY_PASSWORD: "yes"
wordpress:
build: docker/wordpress
ports:
- '80:8080'
- '443:8443'
volumes:
- 'wordpress_data:/bitnami/wordpress'
- '.:/redis-cache:ro'
depends_on:
- mariadb
environment:
MARIADB_HOST: mariadb
MARIADB_PORT_NUMBER: 3306
WORDPRESS_DATABASE_USER: bn_wordpress
WORDPRESS_DATABASE_NAME: bitnami_wordpress
ALLOW_EMPTY_PASSWORD: "yes"
redis-master:
build: docker/redis
ports:
- '6379:6379'
redis-slave:
build: docker/redis
command: 'redis-server --slaveof redis-master 6379'
depends_on:
- redis-master
redis-sentinel:
build: docker/redis-sentinel
depends_on:
- redis-master
environment:
MASTER_NAME: master
QUORUM: 2
MASTER: redis-master
volumes:
mariadb_data:
driver: local
wordpress_data:
driver: local