-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
61 lines (47 loc) · 961 Bytes
/
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
version: '3.3'
configs:
bf_config:
file: ./config.php.swarm
haproxy_config:
file: ./haproxy.cfg
networks:
bf:
attachable: true
services:
web:
image: 192.168.128.23:5000/bf:v17
configs:
- source: bf_config
target: /var/www/html/config.php
ports:
- "80:80"
networks:
- bf
volumes:
- type: bind
source: /bf_images
target: /var/www/html/images
environment:
BF_MEMCACHE_SERVER: memcache
BF_DB_HOST: db_balance
BF_DB_PORT: 26257
BF_DB_USER: bfuser
BF_DB_NAME: bf
BF_FRONTPAGE_LIMIT: 500
deploy:
replicas: 3
memcache:
image: memcached
restart: always
networks:
- bf
db_balance:
image: haproxy
restart: always
configs:
- source: haproxy_config
target: /usr/local/etc/haproxy/haproxy.cfg
networks:
- bf
ports:
- "1936:1936"