-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathdocker-compose.yml
76 lines (68 loc) · 1.35 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
version: '3.4'
services:
app:
build:
dockerfile: ./provisioning/dev/Dockerfile
context: .
network: host
user: ${CURRENT_UID}
environment:
- PHP_IDE_CONFIG=serverName=docker
- HOST_IP=${HOST_IP}
depends_on:
- db
- redis
volumes:
- ./:/var/www/html
nginx:
image: nginx
volumes:
- ./provisioning/nginx.conf:/etc/nginx/conf.d/default.conf
- ./:/var/www/html
ports:
- "8000:8000"
depends_on:
- app
redis:
image: redis:5
ports:
- "6379:6379"
mail:
image: mailhog/mailhog
ports:
- "41025:1025"
- "48025:8025"
# horizon:
# build:
# context: ./provisioning
# network: host
# user: ${CURRENT_UID}
# depends_on:
# - db
# - redis
# volumes:
# - ./:/var/www/html
# command: ['php', 'artisan', 'horizon']
db:
image: mysql:8
environment:
- MYSQL_ROOT_PASSWORD=secret
- MYSQL_DATABASE=stn
- MYSQL_USER=stn
- MYSQL_PASSWORD=stn
volumes:
- mysql-storage:/var/lib/mysql
ports:
- 49306:3306
adminer:
image: adminer
ports:
- "48080:8080"
depends_on:
- db
environment:
- ADMINER_DEFAULT_SERVER=db
volumes:
- ./provisioning/adminer.css:/var/www/html/adminer.css
volumes:
mysql-storage: