2017-07-18 09:00:58 +00:00
|
|
|
version: '2'
|
|
|
|
services:
|
|
|
|
mariadb:
|
2018-09-28 09:15:30 +00:00
|
|
|
image: mariadb
|
2017-07-18 09:00:58 +00:00
|
|
|
environment:
|
2017-10-02 04:02:03 +00:00
|
|
|
- MYSQL_ROOT_PASSWORD=123
|
2017-07-18 09:00:58 +00:00
|
|
|
- MYSQL_USER=root
|
|
|
|
volumes:
|
|
|
|
- ./conf/mariadb-conf.d:/etc/mysql/conf.d
|
2018-10-04 00:10:27 +00:00
|
|
|
- /var/lib/mysql
|
2017-07-18 09:00:58 +00:00
|
|
|
ports:
|
2017-10-08 04:50:56 +00:00
|
|
|
- "3307:3306" #mariadb-port
|
2017-10-02 04:02:03 +00:00
|
|
|
container_name: mariadb
|
2017-07-18 09:00:58 +00:00
|
|
|
|
2017-10-02 04:02:03 +00:00
|
|
|
redis-cache:
|
|
|
|
image: redis:alpine
|
2018-09-28 09:15:30 +00:00
|
|
|
|
|
|
|
volumes:
|
2018-10-04 00:05:37 +00:00
|
|
|
- ./redis-conf:/etc/conf.d
|
2018-09-28 09:15:30 +00:00
|
|
|
|
2018-10-03 23:20:05 +00:00
|
|
|
command: ["redis-server","/etc/conf.d/redis_cache.conf"]
|
2018-09-28 09:15:30 +00:00
|
|
|
|
2017-10-02 04:02:03 +00:00
|
|
|
container_name: redis-cache
|
|
|
|
|
|
|
|
redis-queue:
|
|
|
|
image: redis:alpine
|
2018-09-28 09:15:30 +00:00
|
|
|
|
|
|
|
volumes:
|
2018-10-04 00:05:37 +00:00
|
|
|
- ./redis-conf:/etc/conf.d
|
2018-09-28 09:15:30 +00:00
|
|
|
|
2018-10-03 23:20:05 +00:00
|
|
|
command: ["redis-server","/etc/conf.d/redis_queue.conf"]
|
2018-09-28 09:15:30 +00:00
|
|
|
|
2017-10-02 04:02:03 +00:00
|
|
|
container_name: redis-queue
|
|
|
|
|
|
|
|
redis-socketio:
|
|
|
|
image: redis:alpine
|
2018-09-28 09:15:30 +00:00
|
|
|
|
|
|
|
volumes:
|
2018-10-04 00:05:37 +00:00
|
|
|
- ./redis-conf:/etc/conf.d
|
2018-09-28 09:15:30 +00:00
|
|
|
|
2018-10-03 23:20:05 +00:00
|
|
|
command: ["redis-server","/etc/conf.d/redis_socketio.conf"]
|
2018-09-28 09:15:30 +00:00
|
|
|
|
2017-10-02 04:02:03 +00:00
|
|
|
container_name: redis-socketio
|
2017-07-18 09:00:58 +00:00
|
|
|
|
2018-09-28 09:15:30 +00:00
|
|
|
|
2017-07-18 09:00:58 +00:00
|
|
|
frappe:
|
2017-07-24 08:52:16 +00:00
|
|
|
volumes:
|
2017-10-02 04:02:03 +00:00
|
|
|
- ./frappe-bench:/home/frappe/frappe-bench
|
2018-09-28 08:00:13 +00:00
|
|
|
- ./redis-conf/redis_cache.conf:/home/frappe/frappe-bench/config/redis_cache.conf
|
|
|
|
- ./redis-conf/redis_queue.conf:/home/frappe/frappe-bench/config/redis_queue.conf
|
|
|
|
- ./redis-conf/redis_socketio.conf:/home/frappe/frappe-bench/config/redis_socketio.conf
|
2017-07-18 09:00:58 +00:00
|
|
|
build: .
|
|
|
|
ports:
|
2017-08-14 11:46:10 +00:00
|
|
|
- "8000:8000" #webserver_port
|
|
|
|
- "9000:9000" #socketio_port
|
|
|
|
- "6787:6787" #file_watcher_port
|
2017-07-18 09:00:58 +00:00
|
|
|
stdin_open: true
|
|
|
|
tty: true
|
2017-07-20 11:48:19 +00:00
|
|
|
links:
|
2017-10-02 04:02:03 +00:00
|
|
|
- redis-cache
|
|
|
|
- redis-queue
|
|
|
|
- redis-socketio
|
2017-07-20 11:48:19 +00:00
|
|
|
- mariadb
|
2017-07-18 09:00:58 +00:00
|
|
|
depends_on:
|
2017-07-20 11:48:19 +00:00
|
|
|
- mariadb
|
2017-10-02 04:02:03 +00:00
|
|
|
- redis-cache
|
|
|
|
- redis-queue
|
|
|
|
- redis-socketio
|
|
|
|
container_name: frappe
|