-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
50 lines (50 loc) · 1023 Bytes
/
docker-compose.yml
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
version: '3.8'
services:
## ----------------------------------------
## Service: Backend (Laravel)
## ----------------------------------------
api:
build: .
networks:
- td
volumes:
- ./:/var/www/html
depends_on:
- mysql
## ----------------------------------------
## Service: Nginx
## ----------------------------------------
nginx:
image: nginx:1.19.7-alpine
restart: unless-stopped
ports:
- 8080:80
working_dir: /var/www/html
volumes:
- ./nginx:/etc/nginx/conf.d
- ./:/var/www/html
networks:
- td
depends_on:
- api
npm:
image: library/node:10
volumes:
- ./:/var/www/html
working_dir: /var/www/html
entrypoint: [ 'npm' ]
mysql:
image: library/mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: labonno
MYSQL_DATABASE: labonno
volumes:
- ./db:/var/lib/mysql
ports:
- 3307:3306
networks:
- td
networks:
td:
name: techdiary
driver: bridge