forked from LaravelDaily/Laravel-Appointments
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml.bak
47 lines (43 loc) · 893 Bytes
/
docker-compose.yml.bak
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
version: "3.7"
services:
app:
build:
context: ./
dockerfile: Dockerfile
image: laravel
container_name: laravel-app
restart: unless-stopped
ports:
- "9000:9000"
depends_on:
- "db"
environment:
DB_CONNECTION: mysql
DB_HOST: db
DB_PORT: 3306
DB_DATABASE: laravel
DB_USERNAME: root
DB_PASSWORD: rootpw
db:
image: mysql:5.7
container_name: laravel-db
restart: unless-stopped
ports:
- "3306:3306"
environment:
MYSQL_DATABASE: laravel
MYSQL_ROOT_PASSWORD: rootpw
MYSQL_PASSWORD: password
MYSQL_USER: dbuser
SERVICE_TAGS: dev
SERVICE_NAME: mysql
webserver:
build:
context: ./
dockerfile: Dockerfile.nginx
image: nginx
container_name: laravel-web
restart: unless-stopped
tty: true
ports:
- "8000:80"