-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
86 lines (80 loc) · 1.67 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
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
76
77
78
79
80
81
82
83
84
85
86
version: '3.7'
services:
php-fpm:
build:
context: ./docker/web
user: ${uid}:${gid}
volumes:
- type: bind
source: ./
target: /app
- type: bind
source: ./docker/php-fpm/php.ini
target: /usr/local/etc/php/php.ini
environment:
XDEBUG_CONFIG: remote_enable=1 remote_mode=req remote_host=${ip} remote_port=9000 idekey=phpstorm remote_connect_back=0
PHP_IDE_CONFIG: "serverName=docker"
networks:
- redis-net
web:
image: nginx:latest
ports:
- "8080:80"
volumes:
- type: bind
source: ./
target: /app
- type: bind
source: ./docker/web/default.conf
target: /etc/nginx/conf.d/default.conf
links:
- php-fpm
networks:
- redis-net
php-cli:
build:
context: ./docker/php-cli
volumes:
- type: bind
source: ./
target: /home/hostuser/app
environment:
UID: ${uid}
GID: ${gid}
networks:
- redis-net
redis:
image: 'redis:5.0.5'
networks:
- redis-net
redis-secondary:
image: 'redis:5.0.5'
command: redis-server --replicaof redis 6379
networks:
- redis-net
depends_on:
- redis
sentinel1:
image: 'bitnami/redis-sentinel:latest'
networks:
- redis-net
depends_on:
- redis
- redis-secondary
sentinel2:
image: 'bitnami/redis-sentinel:latest'
networks:
- redis-net
depends_on:
- redis
- redis-secondary
sentinel3:
image: 'bitnami/redis-sentinel:latest'
networks:
- redis-net
depends_on:
- redis
- redis-secondary
networks:
redis-net:
driver: bridge