forked from donysukardi/docker-frappe
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathdocker-compose.yml
91 lines (79 loc) · 2.27 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
version: '2'
services:
web:
image: nginx:alpine
container_name: ${CONTAINER_NAME_PREFIX}-web
volumes:
- './config/nginx.conf:/etc/nginx/conf.d/default.conf:ro'
volumes_from:
- app
ports:
- '${PORT}:80'
restart: always
app:
image: bizzotech/erpnext:${ERPNEXT_VERSION}
container_name: ${CONTAINER_NAME_PREFIX}-app
volumes:
- './sites:/home/frappe/frappe-bench/sites'
depends_on:
- db
restart: always
scheduler:
image: bizzotech/erpnext:${ERPNEXT_VERSION}
container_name: ${CONTAINER_NAME_PREFIX}-scheduler
volumes:
- './sites:/home/frappe/frappe-bench/sites'
command: scheduler
restart: always
worker-default:
image: bizzotech/erpnext:${ERPNEXT_VERSION}
container_name: ${CONTAINER_NAME_PREFIX}-worker-default
volumes:
- './sites:/home/frappe/frappe-bench/sites'
command: worker-default
restart: always
worker-long:
image: bizzotech/erpnext:${ERPNEXT_VERSION}
container_name: ${CONTAINER_NAME_PREFIX}-worker-long
volumes:
- './sites:/home/frappe/frappe-bench/sites'
command: worker-long
restart: always
worker-short:
image: bizzotech/erpnext:${ERPNEXT_VERSION}
container_name: ${CONTAINER_NAME_PREFIX}-worker-short
volumes:
- './sites:/home/frappe/frappe-bench/sites'
command: worker-short
restart: always
redis-cache:
image: redis
container_name: ${CONTAINER_NAME_PREFIX}-redis-cache
restart: always
redis-queue:
image: redis
container_name: ${CONTAINER_NAME_PREFIX}-redis-queue
restart: always
redis-socketio:
image: redis
container_name: ${CONTAINER_NAME_PREFIX}-redis-socketio
restart: always
node-socketio:
image: bizzotech/erpnext:${ERPNEXT_VERSION}
container_name: ${CONTAINER_NAME_PREFIX}-node-socketio
volumes:
- './sites:/home/frappe/frappe-bench/sites'
command: node-socketio
restart: always
db:
image: mariadb:latest
container_name: ${CONTAINER_NAME_PREFIX}-db
restart: always
volumes:
- './config/my.cnf:/etc/mysql/conf.d/frappe.cnf'
- './dataVolume:/var/lib/mysql'
environment:
- MYSQL_ROOT_PASSWORD=asdfasdfasdf
- MYSQL_USER=frappe
- MYSQL_PASSWORD=frappe
- MYSQL_DATABASE=frappe