forked from kservices/gBridge-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·104 lines (98 loc) · 2.28 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
version: '3'
networks:
backend:
driver: bridge
web_frontend:
driver: bridge
services:
database:
image: mysql:5
#volumes:
# - "./.data/db:/var/lib/mysql"
restart: always
environment:
MYSQL_RANDOM_ROOT_PASSWORD: "yes"
MYSQL_DATABASE: gbridge_db
MYSQL_USER: gbridge_db
MYSQL_PASSWORD: abc132cba
#expose, rather than ports, only allows connections from linked machines
expose:
- "3306"
networks:
- backend
cache:
image: redis:4
restart: always
expose:
- "6379"
networks:
- backend
web:
image: pkap/gbridge-web-nginx:latest
restart: always
ports:
- "80:8880"
environment: &webapp-environment
- APP_ENV=local
- APP_KEY=base64:yBHt9LN/MRQqPiub6ECiPl+eWrJTbjXWjTnQM3F9x4k=
- APP_DEBUG=true
- APP_LOG_LEVEL=debug
- APP_URL=http://localhost
- DB_CONNECTION=mysql
- DB_HOST=database
- DB_PORT=3306
- DB_DATABASE=gbridge_db
- DB_USERNAME=gbridge_db
- DB_PASSWORD=abc132cba
- BROADCAST_DRIVER=log
- CACHE_DRIVER=file
- SESSION_DRIVER=file
- SESSION_LIFETIME=120
- QUEUE_DRIVER=sync
- REDIS_HOST=cache
- REDIS_PASSWORD=null
- REDIS_PORT=6379
- MAIL_DRIVER=smtp
- MAIL_HOST=smtp.mailtrap.io
- MAIL_PORT=2525
- MAIL_USERNAME=null
- MAIL_PASSWORD=null
- MAIL_ENCRYPTION=null
- GOOGLE_CLIENTID=${GBRIDGE_GOOGLE_CLIENTID}
- GOOGLE_PROJECTID=${GBRIDGE_GOOGLE_PROJECTID}
links:
- database
- cache
- web-fpm
depends_on:
- database
- cache
- web-fpm
networks:
- web_frontend
- backend
volumes:
- websrc:/var/www
web-fpm:
image: pkap/gbridge-web-fpm:latest
restart: always
networks:
- backend
volumes:
- websrc:/var/www
environment: *webapp-environment
redis-worker:
image: pkap/gbridge-redis-worker:latest
restart: always
environment:
- GBRIDGE_REDISWORKER_REDIS=redis://cache:6379
- GBRIDGE_REDISWORKER_MQTT=mqtt://${GBRIDGE_MQTT_CONNECTION}
- GBRIDGE_REDISWORKER_HOMEGRAPHKEY=${GBRIDGE_GOOGLE_HOMEGRAPHKEY}
networks:
- backend
links:
- cache
depends_on:
- cache
volumes:
websrc: