forked from 4tikhonov/covid-19-infrastructure
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose-crm.yml
56 lines (50 loc) · 1.32 KB
/
docker-compose-crm.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
version: '2'
services:
vtiger:
#build: 7.2.0
image: javanile/vtiger:latest
environment:
- VT_DEBUG=true
- VT_SITE_URL=https://crm.labs.coronawhy.org/
- MYSQL_ROOT_PASSWORD=secret
ports:
- 8083:80
- 20443:443
volumes:
- ./:/app
- ./vtiger:/var/lib/vtiger
links:
- mysql
- adminer
labels:
- "traefik.enable=true"
- "traefik.http.routers.vtiger.rule=Host(`crm.${traefikhost}`)"
- "traefik.http.routers.vtiger.entrypoints=web"
- "traefik.http.services.vtiger.loadbalancer.server.port=80"
# Uncomment this label if your Traefik instance is using a specific Docker network and replace the network name
# This is not necessary if you set your default network in Traefik config/parameters
# - "traefik.docker.network=your-traefik-network-name"
adminer:
image: javanile/adminer
environment:
- MYSQL_DATABASE=vtiger
- MYSQL_ROOT_PASSWORD=secret
ports:
- 20081:8080
links:
- mysql
mysql:
image: mysql:5.5
environment:
- MYSQL_ROOT_PASSWORD=secret
volumes:
- mysql:/var/lib/mysql:rw
- ./:/vtiger:rw
debian:
image: debian
working_dir: /app
command: bash -c "echo 'prevent default'; exit 0"
volumes:
- ./:/app:rw
volumes:
mysql: