forked from espocrm/espocrm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.ci.yml
86 lines (79 loc) · 2.02 KB
/
docker-compose.ci.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
version: '3.1'
services:
mysql:
container_name: mysql
image: mysql:8
command: --default-authentication-plugin=mysql_native_password
restart: always
env_file: .env
environment:
MYSQL_ROOT_PASSWORD: "${DATABASE_ROOT_PASSWORD}"
MYSQL_DATABASE: "${DATABASE_NAME}"
MYSQL_USER: "${DATABASE_USER}"
MYSQL_PASSWORD: "${DATABASE_PASSWORD}"
volumes:
- mysql:/var/lib/mysql
networks:
- espocrm-network
espocrm:
container_name: espocrm
build:
context: .
dockerfile: Dockerfile
image: "${ESPOCRM_IMAGE}"
env_file: .env
environment:
ESPOCRM_DATABASE_NAME: "${DATABASE_NAME}"
ESPOCRM_DATABASE_HOST: mysql
ESPOCRM_DATABASE_USER: "${DATABASE_USER}"
ESPOCRM_DATABASE_PASSWORD: "${DATABASE_PASSWORD}"
ESPOCRM_ADMIN_USERNAME: "${ESPOCRM_ADMIN_USERNAME}"
ESPOCRM_ADMIN_PASSWORD: "${ESPOCRM_ADMIN_PASSWORD}"
ESPOCRM_SITE_URL: "${ESPOCRM_SITE_URL}"
restart: always
volumes:
- espocrm:/var/www/html
depends_on:
- mysql
networks:
- espocrm-network
espocrm-daemon:
container_name: espocrm-daemon
build:
context: .
dockerfile: Dockerfile
image: "${ESPOCRM_DAEMON_IMAGE}"
volumes:
- espocrm:/var/www/html
restart: always
depends_on:
- espocrm
entrypoint: docker-daemon.sh
networks:
- espocrm-network
espocrm-websocket:
container_name: espocrm-websocket
build:
context: .
dockerfile: Dockerfile
image: "${ESPOCRM_WEBSOCKET_IMAGE}"
environment:
ESPOCRM_CONFIG_USE_WEB_SOCKET: "true"
ESPOCRM_CONFIG_WEB_SOCKET_ZERO_M_Q_SUBSCRIBER_DSN: "tcp://*:7777"
ESPOCRM_CONFIG_WEB_SOCKET_ZERO_M_Q_SUBMISSION_DSN: "tcp://espocrm-websocket:7777"
volumes:
- espocrm:/var/www/html
restart: always
depends_on:
- espocrm
entrypoint: docker-websocket.sh
ports:
- "8080:8080"
networks:
- espocrm-network
networks:
espocrm-network:
driver: bridge
volumes:
mysql:
espocrm: