-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
104 lines (98 loc) · 2.41 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
97
98
99
100
101
102
103
104
services:
mariadb:
image: mariadb:11.5
healthcheck:
test: mysqladmin ping -h localhost --password=admin
interval: 1s
retries: 15
deploy:
restart_policy:
condition: on-failure
command:
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
- --skip-character-set-client-handshake
- --skip-innodb-read-only-compressed # Temporary fix for MariaDB 10.6
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_PASSWORD: root
MYSQL_DATABASE: erpnext
MYSQL_USER: root
volumes:
- ./volume/mariadb:/var/lib/mysql
redis-queue:
image: redis:7.4-alpine
deploy:
restart_policy:
condition: on-failure
volumes:
- redis-queue-data:/data
redis-cache:
image: redis:7.4-alpine
deploy:
restart_policy:
condition: on-failure
volumes:
- redis-cache-data:/data
redis-socketio:
image: redis:alpine
volumes:
- redis-socketio-data:/data
restart: unless-stopped
frappe:
image: frappe/erpnext:v15.31.5
deploy:
restart_policy:
condition: on-failure
configurator:
image: frappe/erpnext:v15.31.5
deploy:
restart_policy:
condition: none
entrypoint:
- bash
- -c
command:
- >
bench set-config -g db_host $$DB_HOST;
bench set-config -gp db_port $$DB_PORT;
bench set-config -g redis_cache "redis://$$REDIS_CACHE";
bench set-config -g redis_queue "redis://$$REDIS_QUEUE";
bench set-config -g redis_socketio "redis://$$REDIS_QUEUE";
bench set-config -gp socketio_port $$SOCKETIO_PORT;
environment:
DB_HOST: mariadb
DB_PORT: "3306"
REDIS_CACHE: redis-cache:6379
REDIS_QUEUE: redis-queue:6379
SOCKETIO_PORT: "9000"
dev:
build:
context: .
dockerfile: Dockerfile
environment:
DB_HOST: mariadb
DB_PORT: "3306"
REDIS_CACHE: redis-cache
REDIS_QUEUE: redis-queue
REDIS_SOCKETIO: redis-socketio
SOCKETIO_PORT: "9000"
FRAPPE_DEVELOPER: 1 # Enables developer mode
tty: true
working_dir: /home/frappe/bench
volumes:
- ./frappe:/home/frappe/bench
ports:
- "8000:8000"
volumes:
app:
driver_opts:
type: none
o: bind
device: ./apps
mariadb-data:
redis-cache-data:
redis-queue-data:
redis-socketio-data:
sites-vol:
assets-vol: