2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2024-12-24 11:05:29 +00:00

Merge pull request #48 from Thunderbottom/fix-docker

redis: fix redis
This commit is contained in:
Chinmay Pai 2018-09-28 13:35:10 +05:30 committed by GitHub
commit 88a9e3398c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 21 deletions

View File

@ -8,7 +8,7 @@ USER root
RUN apt-get update RUN apt-get update
RUN apt-get install -y iputils-ping RUN apt-get install -y iputils-ping
RUN apt-get install -y git build-essential python-setuptools python-dev libffi-dev libssl-dev RUN apt-get install -y git build-essential python-setuptools python-dev libffi-dev libssl-dev
RUN apt-get install -y redis-tools software-properties-common libxrender1 libxext6 xfonts-75dpi xfonts-base RUN apt-get install -y redis-tools redis-server software-properties-common libxrender1 libxext6 xfonts-75dpi xfonts-base
RUN apt-get install -y libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev python-tk apt-transport-https libsasl2-dev libldap2-dev libtiff5-dev tcl8.6-dev tk8.6-dev RUN apt-get install -y libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev python-tk apt-transport-https libsasl2-dev libldap2-dev libtiff5-dev tcl8.6-dev tk8.6-dev
RUN apt-get install -y wget RUN apt-get install -y wget
RUN wget https://bootstrap.pypa.io/get-pip.py && python get-pip.py RUN wget https://bootstrap.pypa.io/get-pip.py && python get-pip.py

2
dbench
View File

@ -19,7 +19,7 @@ then
docker exec -i -u root frappe bash -c "cd /home/frappe && chown -R frappe:frappe ./*" docker exec -i -u root frappe bash -c "cd /home/frappe && chown -R frappe:frappe ./*"
docker exec -it frappe bash -c "cd .. && bench init frappe-bench --ignore-exist --skip-redis-config-generation && cd frappe-bench" docker exec -it frappe bash -c "cd .. && bench init frappe-bench --ignore-exist --skip-redis-config-generation && cd frappe-bench"
docker exec -it frappe bash -c "mv Procfile_docker Procfile && mv sites/common_site_config_docker.json sites/common_site_config.json" docker exec -it frappe bash -c "mv Procfile_docker Procfile && mv sites/common_site_config_docker.json sites/common_site_config.json"
docker exec -it -u root frappe bash -c "apt-get install vim && apt-get install sudo && usermod -aG sudo frappe && printf '# User rules for frappe\nfrappe ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers.d/frappe" docker exec -it -u root frappe bash -c "apt-get install -y vim sudo && usermod -aG sudo frappe && printf '# User rules for frappe\nfrappe ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers.d/frappe"
docker exec -it frappe bash -c "bench set-mariadb-host mariadb" docker exec -it frappe bash -c "bench set-mariadb-host mariadb"
docker exec -it frappe bash -c "bench new-site site1.local" docker exec -it frappe bash -c "bench new-site site1.local"
docker exec -it frappe bash -c "bench get-app erpnext" docker exec -it frappe bash -c "bench get-app erpnext"

View File

@ -13,37 +13,22 @@ services:
redis-cache: redis-cache:
image: redis:alpine 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 container_name: redis-cache
redis-queue: redis-queue:
image: redis:alpine 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 container_name: redis-queue
redis-socketio: redis-socketio:
image: redis:alpine 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 container_name: redis-socketio
frappe: frappe:
volumes: volumes:
- ./frappe-bench:/home/frappe/frappe-bench - ./frappe-bench:/home/frappe/frappe-bench
- ./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
build: . build: .
ports: ports:
- "8000:8000" #webserver_port - "8000:8000" #webserver_port