-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yaml
53 lines (48 loc) · 936 Bytes
/
docker-compose.yaml
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
version: '3.3'
networks:
laravel:
services:
webserver:
build:
context: ./docker
dockerfile: nginx.dockerfile
networks:
- laravel
container_name: nginx
ports:
- "80:80"
volumes:
- .:/var/www/html:delegated
depends_on:
- php
php:
build:
context: .
dockerfile: Dockerfile
networks:
- laravel
container_name: php
volumes:
- .:/var/www/html:delegated
ports:
- "9000:9000"
depends_on:
- mysql
mysql:
image: mysql:5.7.22
environment:
MYSQL_USER: zenlease
MYSQL_PASSWORD: secret
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: zenlease
SERVICE_TAGS: dev
SERVICE_NAME: mysql
container_name: mysql
networks:
- laravel
restart: unless-stopped
tty: true
ports:
- "3306:3306"
volumes:
- ./docker/mysql:/var/lib/mysql:delegated