-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (60 loc) · 1.28 KB
/
docker-compose.yml
File metadata and controls
60 lines (60 loc) · 1.28 KB
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
services:
db_sharing:
image: mysql:8.0
volumes:
- ./docker/data/db/:/var/lib/mysql
ports:
- "3800:3306"
environment:
- MYSQL_DATABASE=laravel
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
sharing:
user: "${UID:-1000}:${GID:-1000}"
depends_on:
- db_sharing
- redis
build:
context: .
dockerfile: app.Dockerfile
volumes:
- .:/var/www/html/:consistent
- ./.gnupg:/root/.gnupg
networks:
- default
environment:
XDEBUG_MODE: "coverage"
BROADCAST_CONNECTION: reverb
REVERB_HOST: reverb
REVERB_PORT: 8080
REVERB_SCHEME: http
GNUPGHOME: /root/.gnupg
GPG_TTY: "/dev/tty"
reverb:
user: "${UID:-1000}:${GID:-1000}"
depends_on:
- redis
build:
context: .
dockerfile: app.Dockerfile
working_dir: /var/www/html
command: php artisan reverb:start --no-interaction --host=0.0.0.0 --port=8080
volumes:
- .:/var/www/html/
expose:
- "8080"
web_sharing:
image: nginx:latest
volumes:
- .:/var/www/html:ro
- ./docker/vhost.conf:/etc/nginx/conf.d/default.conf
ports:
- "9300:80"
depends_on:
- sharing
redis:
image: 'redis:alpine'
ports:
- '6379:6379'
volumes:
vendor:
node_modules: