-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
65 lines (65 loc) · 1.36 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
version: "3.7"
services:
web:
build: ./nginx
ports:
- "80:80"
links:
- php
volumes:
- magento:/var/www/magento
php:
env_file: ./.env
build:
context: ./php
args:
GIT_URL: ${GIT_URL}
expose:
- 9000
volumes:
- magento:/var/www/magento
- composer:/root/.composer
depends_on:
- db
db:
image: mariadb:latest
expose:
- 3306
ports:
- "3337:3306"
volumes:
- db:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: 123123q
MYSQL_DATABASE: magento
MYSQL_USER: magento
MYSQL_PASSWORD: 123123q
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost", "-p123123q"]
timeout: 20s
retries: 10
mailhog:
container_name: mailhog
image: mailhog/mailhog:latest
links:
- php
ports:
- "1025:1025"
- "8025:8025"
ssh:
env_file: ./.env
build:
context: ./ssh
args:
ROOTPASS: ${ROOTPASS}
ports:
- "2222:22"
links:
- php
- web
volumes:
- magento:/var/www/magento
volumes:
composer:
magento:
db: