-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcompose.yaml
More file actions
53 lines (48 loc) · 1.03 KB
/
Copy pathcompose.yaml
File metadata and controls
53 lines (48 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
version: '3.8'
services:
my-shop-frontend:
#container_name: "my-shop-frontend"
build:
context: ./Frontend
dockerfile: Dockerfile
image: "sealcandywar2/my-shop-frontend:v2"
restart: always
environment:
- BACKEND_SERVICE=my-shop-backend
- BACKEND_PORT=8080
ports:
- "9090:9090"
depends_on:
- my-shop-backend
networks:
- "frontend"
my-shop-backend:
#container_name: "my-shop-backend"
build:
context: ./Backend
dockerfile: Dockerfile
image: "sealcandywar2/my-shop-backend:v3"
restart: always
ports:
- "8080:8080"
environment:
- BACKEND_SERVICE=my-shop-db
- BACKEND_PORT=3306
- MYSQL_USER=root
- MYSQL_DATABASE=test_nodejs
depends_on:
- my-shop-db
networks:
- "backend"
- "frontend"
my-shop-db:
#container_name: "my-shop-db"
image: "sealcandywar2/my-shop-db:v0"
restart: always
ports:
- "3306"
networks:
- "backend"
networks:
frontend:
backend: