This repository has been archived by the owner on May 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
100 lines (91 loc) · 1.71 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
version: "3.7"
services:
webserver:
build:
context: .
target: dev
ports:
- "8080"
networks:
backend:
db:
mail:
environment:
- APP_ENV=local
- APP_URL=web.local.improv.ee
volumes:
- ./src:/var/www/
depends_on:
- app-db
- redis
extra_hosts:
# Map xdebug_host to your local dev machine IP
# This is only needed when using Xdebug
- "xdebug_host:192.168.10.13"
worker:
build:
context: .
networks:
- backend
- db
- mail
environment:
- APP_ENV=local
- APP_URL=web.local.improv.ee
volumes:
- ./src:/var/www/
depends_on:
- app-db
- redis
command: "php /var/www/artisan queue:work --tries=3"
lb:
build:
context: docker/lb
image: sqroot/nginx
ports:
- "80:80"
- "443:443"
networks:
backend:
aliases:
- web.local.improv.ee
- api.local.improv.ee
volumes:
- ./docker/lb/certs:/etc/ssl/certs/lb:ro
depends_on:
- webserver
app-db:
image: mariadb:10
environment:
- MYSQL_ROOT_PASSWORD=5jzdDHBWV966YWXhGz1HMn7OTu0c0eJV
- MYSQL_USER=improv_ee
- MYSQL_PASSWORD=FHoXB8ONj4bvTTn7FXaix
- MYSQL_DATABASE=improv_ee
networks:
- db
ports:
- 3308:3306
volumes:
- app-db:/var/lib/mysql
redis:
image: redis:4-alpine
networks:
- db
volumes:
- redis:/data
ports:
- "6379:6379"
command: --appendonly yes --requirepass C3azPJ6wk8wueiuDjM
mailserver:
image: mailhog/mailhog
ports:
- "8025:8025"
networks:
- mail
volumes:
app-db:
redis:
networks:
backend:
db:
mail: