-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
59 lines (58 loc) · 1.17 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
version: '3'
volumes:
db_data:
services:
app:
build:
context: .
image: guoxiangke/xchurch
restart: unless-stopped
ports:
- "9002:80"
links:
- "db"
volumes:
- ./:/var/www/html
- ./docker/uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
environment:
CONTAINER_ROLE: app
#MySQL Service
db:
image: mysql:latest
command: ['--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci', '--default-authentication-plugin=mysql_native_password']
restart: unless-stopped
volumes:
- db_data:/var/lib/mysql
- /tmp:/sql
environment:
MYSQL_DATABASE: laravel
MYSQL_ROOT_PASSWORD: root
redis:
image: redis:latest
restart: always
scheduler:
image: guoxiangke/xchurch
restart: always
links:
- "db"
depends_on:
- app
links:
- redis
volumes:
- ./:/var/www/html
environment:
CONTAINER_ROLE: scheduler
queue:
image: guoxiangke/xchurch
restart: always
links:
- "db"
depends_on:
- app
links:
- redis
volumes:
- ./:/var/www/html
environment:
CONTAINER_ROLE: queue