forked from frappe/frappe_docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
96 lines (87 loc) · 2.47 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
version: '2'
services:
mariadb:
image: mariadb
environment:
- MYSQL_ROOT_PASSWORD=gHjpN29ZHA8L6BeE
- MYSQL_USER=root
volumes:
- ./conf/mariadb-conf.d:/etc/mysql/conf.d
- ./mariadb-data:/var/lib/mysql
ports:
- "127.0.0.1:3307:3306" #mariadb-port
restart: unless-stopped
redis-cache:
image: redis:alpine
volumes:
- ./redis-conf:/etc/conf.d
command: ["redis-server","/etc/conf.d/redis_cache.conf"]
restart: unless-stopped
redis-queue:
image: redis:alpine
volumes:
- ./redis-conf:/etc/conf.d
command: ["redis-server","/etc/conf.d/redis_queue.conf"]
restart: unless-stopped
redis-socketio:
image: redis:alpine
volumes:
- ./redis-conf:/etc/conf.d
command: ["redis-server","/etc/conf.d/redis_socketio.conf"]
restart: unless-stopped
frappe:
environment:
- FRAPPE_VERSION=v10.1.68
- ERPNEXT_VERSION=v10.1.68
volumes:
- ./scripts:/home/frappe/scripts
- ./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:
context: .
dockerfile: ./Dockerfile
command: bash -c "/home/frappe/scripts/run.sh"
ports:
- "127.0.0.1:8000:8000" #webserver_port
- "127.0.0.1:9000:9000" #socketio_port
- "127.0.0.1:6787:6787" #file_watcher_port
stdin_open: true
tty: true
links:
- redis-cache
- redis-queue
- redis-socketio
- mariadb
depends_on:
- mariadb
- redis-cache
- redis-queue
- redis-socketio
restart: unless-stopped
# nginx:
# build:
# context: .
# dockerfile: docker/nginx/nginx_dockerfile
# volumes:
# - ./docker/nginx:/etc/nginx/conf.d:ro
# - ./frappe-bench:/home/frappe/frappe-bench:ro
# command: nginx-debug -g 'daemon off;'
# depends_on:
# - frappe
# links:
# - frappe
# ports:
# - 127.0.0.1:9090:80
# ## TODO: prod-ready changes
# worker:
# run celery; consume from default, short & long queues
# scheduler:
# run: bench schedule
# node_socketio:
# port: 9000
# run: /usr/bin/node /home/badili/frappe-bench/apps/frappe/socketio.js
# nginx:
# - proxy pass to frappe
# - share volumes with frappe for statics