-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
43 lines (39 loc) · 912 Bytes
/
docker-compose.yaml
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
version: '3.1'
services:
mycar:
container_name: mycar-php
build:
context: .
dockerfile: .docker/Dockerfile
image: 'mycar'
restart: always
ports:
- 80:80
volumes:
- ./car-app:/var/www/html
database:
container_name: mycar-db
platform: linux/x86_64
image: mysql:5.7
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: secret
database-client:
container_name: mycar-adminer
image: adminer
restart: always
environment:
ADMINER_DEFAULT_DB_DRIVER: mysql
ADMINER_DEFAULT_DB_HOST: database
ADMINER_DESIGN: haeckel
ADMINER_PLUGINS: tables-filter tinymce
ports:
- 54320:8080
mailhog:
container_name: mycar-mailhog
image: mailhog/mailhog:latest
restart: always
ports:
- 1025:1025
- 8025:8025