forked from DallasPHP/opencfp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (43 loc) · 1.08 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
version: "3.1"
services:
mailhog:
image: mailhog/mailhog:latest
container_name: opencfp-mailhog
ports:
- "8081:8025"
mysql:
image: mysql:5.7
container_name: opencfp-mysql
working_dir: /application
ports:
- "3307:3306"
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=2017_opencfp
- MYSQL_USER=dbadmin
- MYSQL_PASSWORD=root
nginx:
image: nginx:alpine
container_name: opencfp-nginx
working_dir: /application
volumes:
- .:/application
- ./docker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
ports:
- "8080:80"
links:
- php-fpm
php-fpm:
build:
context: .
dockerfile: docker/php-fpm/Dockerfile
container_name: opencfp-php-fpm
working_dir: /application
environment:
CFP_ENV: development
volumes:
- .:/application
- ./docker/php-fpm/php-ini-overrides.ini:/etc/php/7.1/fpm/conf.d/99-overrides.ini
links:
- mailhog
- mysql