-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (45 loc) · 972 Bytes
/
docker-compose.yml
File metadata and controls
48 lines (45 loc) · 972 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
41
42
43
44
45
46
47
48
version: "3"
networks:
iresponse:
services:
nginx:
image: library/nginx:stable-alpine
container_name: LAMP-nginx
volumes:
- ./src/app:/var/www/html
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
ports:
- "8060:80"
depends_on:
- php
- mysql
networks:
- iresponse
mysql:
image: library/mysql:5.7.22
container_name: LAMP-mysql
restart: unless-stopped
ports:
- "3307:3306"
volumes:
- ./mysql:/var/lib/mysql
networks:
- iresponse
environment:
MYSQL_DATABASE: homestead
MYSQL_USER: root
MYSQL_PASSWORD: root
MYSQL_ROOT_PASSWORD: root
SERVICE_NAME: mysql
SERVICE_TAG: dev
php:
build:
context: .
dockerfile: Dockerfile
container_name: LAMP-php
volumes:
- ./src/app:/var/www/html
ports:
- "9000:9000"
networks:
- iresponse