-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
97 lines (91 loc) · 2.02 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
version: "3"
services:
app: # connect to cmd line with `docker exec -ti laravel-www /bin/bash`
image: laravel-www
container_name: laravel-www
build:
context: .
dockerfile: docker/Dockerfile
restart: always
depends_on:
- redis
- mysql
ports:
- 8080:80
volumes:
- .:/var/www/html
environment:
#APP_ENV: local
CONTAINER_ROLE: app
CACHE_DRIVER: redis
SESSION_DRIVER: redis
QUEUE_DRIVER: redis
REDIS_HOST: redis
ZENBOT_MONGODB_HOST: mongodb
scheduler:
image: laravel-www
container_name: laravel-scheduler
restart: always
depends_on:
- app
volumes:
- .:/var/www/html
environment:
#APP_ENV: local
CONTAINER_ROLE: scheduler
CACHE_DRIVER: redis
SESSION_DRIVER: redis
QUEUE_DRIVER: redis
REDIS_HOST: redis
queue:
image: laravel-www
container_name: laravel-queue
restart: always
depends_on:
- app
volumes:
- .:/var/www/html
environment:
#APP_ENV: local
CONTAINER_ROLE: queue
CACHE_DRIVER: redis
SESSION_DRIVER: redis
QUEUE_DRIVER: redis
REDIS_HOST: redis
ZENBOT_MONGODB_HOST: mongodb
redis:
container_name: laravel-redis
image: redis:4-alpine
restart: always
expose:
- 6379
volumes:
- redis:/data
mysql:
container_name: laravel-mysql
image: mysql:5.7
restart: always
command: --max_connections=500 --wait_timeout=30 --interactive_timeout=30
ports:
- 13306:3306
volumes:
- mysql:/var/lib/mysql
environment:
MYSQL_DATABASE: zenbot_sim_runner
MYSQL_ROOT_PASSWORD: password
MYSQL_USER: zsr
MYSQL_PASSWORD: zsrpw
mongodb:
image: mongo:latest
container_name: zenbot-mongodb
restart: always
ports:
- 27018:27017
volumes:
- /var/lib/mongodb:/data/db
command: mongod --bind_ip=0.0.0.0 --logpath=/dev/null
volumes:
redis:
driver: "local"
mysql:
driver: "local"