-
Notifications
You must be signed in to change notification settings - Fork 136
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (40 loc) · 799 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (40 loc) · 799 Bytes
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
version: '3'
services:
restapi-app:
depends_on:
- restapi-mysql
build:
context: ./docker
dockerfile: Dockerfile
image: restapi/php-nginx
environment:
XDEBUG_HOST : ${XDEBUG_HOST}
ports:
- "${APP_PORT}:80"
volumes:
- .:/var/www/html
networks:
- restapi_docker
restapi-redis:
image: redis:alpine
networks:
- restapi_docker
restapi-mysql:
image: mysql:5.7
ports:
- "${DB_PORT}:3306"
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: restapi
MYSQL_USER: homestead
MYSQL_PASSWORD: secret
volumes:
- rapimsqldata:/var/lib/mysql
networks:
- restapi_docker
networks:
restapi_docker:
driver: "bridge"
volumes:
rapimsqldata:
driver: "local"