-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprod.yml
44 lines (43 loc) · 840 Bytes
/
prod.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
version: '3.6'
services:
web:
build: ./docker/nginx
container_name: web
volumes:
- ./app:/var/www/html
working_dir: /etc/nginx
links:
- python
- mysql
ports:
- 8000:80
python:
build: ./docker/python
container_name: python
volumes:
- ./app:/var/www/html
working_dir: /var/www/html
depends_on:
- mysql
mysql:
build: ./docker/mysql
container_name: mysql
ports:
- 3306:3306
volumes:
- data-volume:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=vzor_db
frontend:
build: ./docker/frontend
container_name: frontend
volumes:
- ./app:/app
- node-modules:/app/node_modules
working_dir: /app
ports:
- 3000:3000
volumes:
data-volume:
node-modules: