-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (42 loc) · 837 Bytes
/
docker-compose.yml
File metadata and controls
46 lines (42 loc) · 837 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
version: "3.8"
services:
db:
container_name: 'news-backend-db'
image: mysql:5.7
ports:
- "3306:3306"
volumes:
- ./.docker/mysql:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=toor
- MYSQL_DATABASE=news
- MYSQL_USER=laravel
- MYSQL_PASSWORD=laravel
networks:
- news
app:
container_name: 'news-backend-app'
build: .
volumes:
- .:/var/www/app
- ./.docker/log:/var/log
depends_on:
- db
networks:
- news
nginx:
container_name: 'news-backend-nginx'
image: nginx:stable-alpine
ports:
- "8080:80"
depends_on:
- app
- db
volumes:
- .:/var/www/app
- ./.docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
networks:
- news
networks:
news:
driver: bridge