-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
57 lines (51 loc) · 1.39 KB
/
docker-compose.yml
File metadata and controls
57 lines (51 loc) · 1.39 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
version: '3'
services:
app:
build:
context: .
dockerfile: Dockerfile
args:
uid: ${UID}
container_name: hiko_laravel_app
environment:
- APACHE_RUN_USER=#1000
- APACHE_RUN_GROUP=#1000
volumes:
- .:/var/www/html
- ./vhost.conf:/opt/docker/etc/httpd/vhost.conf
- ./certs/hiko.test.crt:/etc/ssl/certs/hiko.test.crt
- ./certs/hiko.test.key:/etc/ssl/private/hiko.test.key
ports:
- "80:80"
- "443:443"
depends_on:
- mysql
mysql:
image: mysql:8.0
container_name: hiko_mysql_db
environment:
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
ports:
- "3307:3306"
volumes:
- mysql_data:/var/lib/mysql
adminer:
image: adminer
container_name: hiko_adminer
ports:
- "8080:8080"
environment:
ADMINER_DEFAULT_SERVER: mysql
depends_on:
- mysql
mailhog:
image: mailhog/mailhog
container_name: hiko_mailhog
ports:
- "8025:8025" # Web UI
- "1025:1025" # SMTP server
volumes:
mysql_data: