forked from mnapoli/externals
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (41 loc) · 981 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
version: "2.1"
services:
db:
image: mysql:5.7
ports:
- '6306:3306'
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: externals
MYSQL_PASSWORD: externals
MYSQL_DATABASE: externals
web:
image: bref/fpm-dev-gateway
ports:
- '8000:80'
volumes:
- .:/var/task
links:
- php
environment:
HANDLER: web/index.php
DOCUMENT_ROOT: web
php:
image: bref/php-74-fpm-dev
volumes:
- .:/var/task:ro
environment:
ENV: dev
DB_URL: mysql://externals:externals@db/externals
links:
- db
cli:
image: bref/php-74
volumes:
- .:/var/task
environment:
ENV: dev
DB_URL: mysql://externals:externals@db/externals
links:
- db
entrypoint: php