-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
65 lines (60 loc) · 1.12 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
version: '2'
services:
cms:
build:
context: ./docker-src/cms
container_name: cms
mem_limit: 2G
ports:
- 8080:80
- 8443:443
volumes:
- /var/www
env_file: environment
environment:
- CONNECTBACK=off
links:
- db
- memcache
networks:
- connector
db:
image: mariadb:latest
container_name: db
mem_limit: 1G
env_file: environment
ports:
- 3306:3306
volumes:
- ./docker-src/db/conf:/etc/mysql/conf.d
- database:/var/lib/mysql
networks:
- connector
memcache:
image: memcached:latest
container_name: memcached
mem_limit: 256M
environment:
- MEMCACHED_SERVER=memcached:11211
ports:
- 11211:11211
networks:
- connector
bg-sync:
image: cweagans/bg-sync:latest
container_name: bg-sync
volumes:
- .:/source
volumes_from:
- cms
environment:
- SYNC_DESTINATION=/var/www
- SYNC_MAX_INOTIFY_WATCHES=50000
- SYNC_NODELETE_SOURCE=0
privileged: true
networks:
- connector
networks:
connector:
volumes:
database: {}