-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (50 loc) · 1.09 KB
/
docker-compose.yml
File metadata and controls
56 lines (50 loc) · 1.09 KB
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
version: '3'
services:
nginx:
image: nginx:latest
container_name: slim4-api-skeleton-nginx-container
ports:
- "8081:80"
volumes:
- ./:/var/www/html
- ./docker/nginx/conf.d:/etc/nginx/conf.d
networks:
- testingnetwork
php-fpm:
build: ./docker/php7
container_name: slim4-api-skeleton-php-container
links:
- mysql
environment:
- PHP_FPM_ENABLE=1
- PHP_FPM_SERVER_ADDR=php
- PHP_FPM_SERVER_PORT=9000
- PHP_FPM_TIMEOUT=${HTTPD_TIMEOUT_TO_PHP_FPM:-180}
- DB_HOST=mysql
- DB_NAME=slim4_api_skeleton
- DB_USER=root
- DB_PASS=
volumes:
- ./:/var/www/html
networks:
- testingnetwork
mysql:
image: mysql:5.7
ports:
- 33060:3306
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
MYSQL_DATABASE: slim4_api_skeleton
MYSQL_USER: root
MYSQL_PASSWORD:
MYSQL_ROOT_PASSWORD:
networks:
- testingnetwork
volumes:
- my-data:/var/lib/mysql
networks:
testingnetwork:
external:
name: testingnetwork
volumes:
my-data: