mirror of
https://github.com/frappe/frappe_docker.git
synced 2024-12-23 10:38:58 +00:00
9d1d09a3c0
Former-commit-id: 06ff744f7b
65 lines
1.3 KiB
YAML
65 lines
1.3 KiB
YAML
version: '2'
|
|
services:
|
|
mariadb:
|
|
image: "mariadb"
|
|
environment:
|
|
- MYSQL_ROOT_PASSWORD=123
|
|
- MYSQL_USER=root
|
|
volumes:
|
|
- ./conf/mariadb-conf.d:/etc/mysql/conf.d
|
|
ports:
|
|
- "3307:3307"
|
|
container_name: mariadb
|
|
|
|
redis-cache:
|
|
image: redis:alpine
|
|
|
|
volumes:
|
|
- ./redis-conf/redis_cache.conf:/etc/conf.d/redis.conf
|
|
|
|
command: ["redis-server","/etc/conf.d/redis.conf"]
|
|
|
|
container_name: redis-cache
|
|
|
|
redis-queue:
|
|
image: redis:alpine
|
|
|
|
volumes:
|
|
- ./redis-conf/redis_queue.conf:/etc/conf.d/redis.conf
|
|
|
|
command: ["redis-server","/etc/conf.d/redis.conf"]
|
|
|
|
container_name: redis-queue
|
|
|
|
redis-socketio:
|
|
image: redis:alpine
|
|
|
|
volumes:
|
|
- ./redis-conf/redis_socketio.conf:/etc/conf.d/redis.conf
|
|
|
|
command: ["redis-server","/etc/conf.d/redis.conf"]
|
|
|
|
container_name: redis-socketio
|
|
|
|
frappe:
|
|
volumes:
|
|
- ./frappe-bench:/home/frappe/frappe-bench
|
|
build: .
|
|
ports:
|
|
- "8000:8000"
|
|
stdin_open: true
|
|
tty: true
|
|
links:
|
|
- redis-cache
|
|
- redis-queue
|
|
- redis-socketio
|
|
- mariadb
|
|
depends_on:
|
|
- mariadb
|
|
- redis-cache
|
|
- redis-queue
|
|
- redis-socketio
|
|
container_name: frappe
|
|
|
|
#TODO: bind ports of the redis and frappe containers
|