-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
155 lines (140 loc) · 3.84 KB
/
docker-compose.yaml
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
version: "3"
services:
erpnext-nginx:
image: frappe/erpnext-nginx:${ERPNEXT_VERSION}
restart: on-failure
user: root
container_name: erpnext-nginx
environment:
- FRAPPE_PY=erpnext-python
- FRAPPE_PY_PORT=8000
- FRAPPE_SOCKETIO=frappe-socketio
- SOCKETIO_PORT=9000
- SKIP_NGINX_TEMPLATE_GENERATION=${SKIP_NGINX_TEMPLATE_GENERATION}
volumes:
- ./sites:/var/www/html/sites
- ./assets:/assets
erpnext-python:
image: frappe/erpnext-worker:${ERPNEXT_VERSION}
restart: on-failure
container_name: erpnext-python
user: root
environment:
- MARIADB_HOST=${MARIADB_HOST}
- REDIS_CACHE=redis-cache:6379
- REDIS_QUEUE=redis-queue:6379
- REDIS_SOCKETIO=redis-socketio:6379
- SOCKETIO_PORT=9000
- AUTO_MIGRATE=1
- WORKER_CLASS=${WORKER_CLASS}
volumes:
- ./sites:/home/frappe/frappe-bench/sites
- ./assets:/home/frappe/frappe-bench/sites/assets
frappe-socketio:
image: frappe/frappe-socketio:${FRAPPE_VERSION}
restart: on-failure
container_name: erpnext-socketio
depends_on:
- redis-socketio
volumes:
- ./sites:/home/frappe/frappe-bench/sites
- ./logs/home/frappe/frappe-bench/logs
erpnext-worker-default:
image: frappe/erpnext-worker:${ERPNEXT_VERSION}
restart: on-failure
command: worker
container_name: erpnext-worker-default
depends_on:
- redis-queue
- redis-cache
volumes:
- ./sites:/home/frappe/frappe-bench/sites
- ./logs:/home/frappe/frappe-bench/logs
erpnext-worker-short:
image: frappe/erpnext-worker:${ERPNEXT_VERSION}
restart: on-failure
command: worker
container_name: erpnext-worker-short
environment:
- WORKER_TYPE=short
depends_on:
- redis-queue
- redis-cache
volumes:
- ./sites:/home/frappe/frappe-bench/sites
- ./logs:/home/frappe/frappe-bench/logs
erpnext-worker-long:
image: frappe/erpnext-worker:${ERPNEXT_VERSION}
restart: on-failure
command: worker
container_name: erpnext-worker-long
environment:
- WORKER_TYPE=long
depends_on:
- redis-queue
- redis-cache
volumes:
- ./sites:/home/frappe/frappe-bench/sites
erpnext-schedule:
image: frappe/erpnext-worker:${ERPNEXT_VERSION}
restart: on-failure
command: schedule
container_name: erpnext-schedule
depends_on:
- redis-queue
- redis-cache
volumes:
- ./sites:/home/frappe/frappe-bench/sites
- ./logs:/home/frappe/frappe-bench/logs
redis-cache:
image: redis:latest
restart: on-failure
container_name: erpnext-redis-cache
volumes:
- redis-cache-vol:/data
redis-queue:
image: redis:latest
restart: on-failure
container_name: erpnext-redis-queue
volumes:
- redis-queue-vol:/data
redis-socketio:
image: redis:latest
restart: on-failure
container_name: erpnext-redis-socketio
volumes:
- redis-socketio-vol:/data
mariadb:
image: mariadb:10.3
restart: on-failure
container_name: erpnext-db
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
volumes:
- ./mysqlconf:/etc/mysql/conf.d
- ./mariadb:/var/lib/mysql
site-creator:
image: frappe/erpnext-worker:${ERPNEXT_VERSION}
restart: "no"
container_name: erpnext-sitecreator
command: new
user: root
depends_on:
- erpnext-python
environment:
- SITE_NAME=${SITE_NAME}
- DB_ROOT_USER=${DB_ROOT_USER}
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- ADMIN_PASSWORD=${ADMIN_PASSWORD}
- INSTALL_APPS=${INSTALL_APPS}
volumes:
- ./sites:/home/frappe/frappe-bench/sites
- ./logs:/home/frappe/frappe-bench/logs
networks:
default:
external:
name: proxy_default
volumes:
redis-cache-vol:
redis-queue-vol:
redis-socketio-vol: