-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (54 loc) · 1.03 KB
/
docker-compose.yml
File metadata and controls
59 lines (54 loc) · 1.03 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
57
58
59
version: "3.9"
networks:
laravel:
name: laravel
services:
app:
container_name: laravel-app
build:
context: .
dockerfile: Dockerfile
volumes:
- ./src:/var/www/html
depends_on:
- mysql
networks:
- laravel
mysql:
container_name: laravel-mysql
image: mysql:8.0
restart: always
volumes:
- /var/lib/mysql
environment:
- MYSQL_DATABASE=laravel
- MYSQL_USER=admin
- MYSQL_PASSWORD=admin
- MYSQL_ROOT_PASSWORD=admin
ports:
- "3306:3306"
networks:
- laravel
web:
container_name: laravel-web
image: nginx:stable-alpine
restart: always
ports:
- "8000:80"
volumes:
- ./src:/var/www/html
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
networks:
- laravel
phpmyadmin:
container_name: laravel-phpmyadmin
image: phpmyadmin:latest
restart: always
ports:
- "8001:80"
depends_on:
- mysql
links:
- "mysql:db"
networks:
- laravel