-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
53 lines (48 loc) · 946 Bytes
/
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: '3'
services:
nginx:
build:
context: .
dockerfile: docker/nginx/Dockerfile
volumes:
- ".:/opt/app"
- "./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf"
ports:
- "80:80"
depends_on:
- php
php:
build:
context: .
dockerfile: docker/php/Dockerfile
volumes:
- ".:/opt/app"
env_file:
- './.env.dist'
- './.env.dev'
depends_on:
- db
db:
image: mariadb:10.4
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=app
- MYSQL_USER=user
- MYSQL_PASSWORD=123456789
ports:
- '3336:3306'
mailcatcher:
image: tophfr/mailcatcher
ports:
- "1080:80"
phpmyadmin:
image: phpmyadmin/phpmyadmin:4.9
ports:
- "8080:80"
environment:
- PMA_HOST=db
- PMA_PORT=3306
- PMA_USER=user
- PMA_PASSWORD=123456789
depends_on:
- db