-
Notifications
You must be signed in to change notification settings - Fork 19
/
docker-compose-standard.yml
84 lines (83 loc) · 2.31 KB
/
docker-compose-standard.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
version: '3'
services:
web:
image: nginx:latest
env_file: .env
ports:
- "${LHC_PUBLIC_PORT}:80"
volumes:
- ./livehelperchat/lhc_web:/code
- ./conf/nginx/site.conf:/etc/nginx/conf.d/default.conf
- ./conf/nginx/mime.types:/etc/nginx/mime.types
- ./conf/nginx/nginx.conf:/etc/nginx/nginx.conf
depends_on:
- db
- php
networks:
- code-network
restart: always
php:
build: ./Dockerfiles/php
image: remdex/livehelperchat-php:latest
env_file: .env
volumes:
- ./livehelperchat/lhc_web:/code
- ./lhc-php-resque/lhcphpresque:/code/extension/lhcphpresque
- ./conf/scripts:/scripts
- ./conf/php-fpm/zz-lhc.conf:/usr/local/etc/php-fpm.d/zz-lhc.conf
networks:
- code-network
restart: always
php-cronjob:
build: ./Dockerfiles/cronjob
image: remdex/livehelperchat-php-cronjob:latest
env_file: .env
volumes:
- ./livehelperchat/lhc_web:/code
- ./lhc-php-resque/lhcphpresque:/code/extension/lhcphpresque
- ./conf/scripts:/scripts
networks:
- code-network
restart: always
cobrowse:
build: ./Dockerfiles/cobrowse
image: remdex/livehelperchat-cobrowse:latest
ports:
- 127.0.0.1:31130:31130
networks:
- code-network
restart: always
php-resque:
build: ./Dockerfiles/php-resque
image: remdex/livehelperchat-php-resque:latest
env_file: .env
volumes:
- ./livehelperchat/lhc_web:/code
- ./lhc-php-resque/lhcphpresque:/code/extension/lhcphpresque
- ./conf/scripts:/scripts
networks:
- code-network
restart: always
depends_on:
- db
- redis
redis:
image: "redis:alpine"
networks:
- code-network
restart: always
db:
image: mariadb
env_file: .env
environment:
TZ: UTC
volumes:
- ./dbdata:/var/lib/mysql
ports:
- 127.0.0.1:3307:3306
networks:
- code-network
restart: always
networks:
code-network:
driver: bridge