-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (51 loc) · 1.03 KB
/
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
51
version: '3.8'
services:
app:
build:
context: ./docker/app
dockerfile: C:\Users\Sinov8\PhpstormProjects\StockIt\docker\app\DockerFile
image: stockit/app:latest
networks:
- stockit
volumes:
- .:/var/www/html
ports:
- 8060:80
working_dir: /var/www/html
node:
build:
context: ./docker/node
dockerfile: C:\Users\Sinov8\PhpstormProjects\StockIt\docker\node\DockerFile
image: stockit/node:latest
networks:
- stockit
volumes:
- .:/var/www/html
working_dir: /var/www/html
cache:
image: redis:alpine
networks:
- stockit
volumes:
- cachedata:/data
db:
image: mysql:5.7.22
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: stockit
MYSQL_USER: root
MYSQL_PASSWORD: root
networks:
- stockit
volumes:
- stockit_dbdata:/var/lib/mysql
ports:
- "33062:3306"
networks:
stockit:
driver: bridge
volumes:
stockit_dbdata:
driver: local
cachedata:
driver: local