-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose-swarm.yml
76 lines (69 loc) · 1.61 KB
/
docker-compose-swarm.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
version: '3'
services:
laravel:
image: registry.vivifyideas.com/{namespace}/laravel:{branch}
deploy:
replicas: 3
restart_policy:
condition: on-failure
volumes:
- cache:/app/bootstrap/cache
- uploads:/app/public/uploads
- build:/app/public/build
- storage:/app/storage/app/public
- phpsessions:/tmp
- ./.env:/app/.env
queue:
image: registry.vivifyideas.com/{namespace}/laravel:{branch}
command: 'php artisan queue:listen --tries=3 --timeout=60'
volumes:
- cache:/app/bootstrap/cache
- uploads:/app/public/uploads
- build:/app/public/build
- storage:/app/storage/app/public
- phpsessions:/tmp
- ./.env:/app/.env
web:
image: registry.vivifyideas.com/{namespace}/web:{branch}
deploy:
restart_policy:
condition: on-failure
environment:
- NGINX_MAX_BODY=100M
ports:
- 80:80
volumes:
- uploads:/app/public/uploads
- build:/app/public/build
- storage:/app/public/public
redis:
image: "redis:alpine"
deploy:
restart_policy:
condition: on-failure
beanstalk:
image: "jonbaldie/beanstalkd"
deploy:
restart_policy:
condition: on-failure
db:
image: mariadb:10.2
deploy:
restart_policy:
condition: on-failure
environment:
MYSQL_DATABASE: laravel-boilerplate
MYSQL_USER: laravel
MYSQL_PASSWORD: laravel
MYSQL_ROOT_PASSWORD: root
ports:
- 3306:3306
volumes:
- db:/var/lib/mysql
volumes:
cache:
uploads:
build:
storage:
phpsessions:
db: