-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
54 lines (47 loc) · 1.02 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
version: '2.2'
volumes:
db_data:
driver: local
services:
awesome.scot:
build: ./build/httpd
links:
- php
ports:
- 80:80
- 443:443
volumes_from:
- app
php:
build: ./build/php
ports:
- 9000
- 9001
volumes_from:
- app
links:
- mariadb
- mail
environment:
APPLICATION_ENV: 'development'
app:
image: httpd:2.4.38
volumes:
- ./:/var/www/html
command: "echo true"
mariadb:
image: mariadb:latest
volumes:
- ./build/data:/docker-entrypoint-initdb.d
- db_data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: '[123456]'
MYSQL_USER: dbuser
MYSQL_PASSWORD: '[123456]'
ports:
- 3306:3306
mail:
image: mailhog/mailhog
ports:
- 1025:1025
- 8025:8025