-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (44 loc) · 935 Bytes
/
docker-compose.yml
File metadata and controls
50 lines (44 loc) · 935 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
47
48
49
50
version: '3.4'
services:
db:
image: mysql
restart: always
environment:
MYSQL_DATABASE: 'db'
MYSQL_USER: 'root'
MYSQL_PASSWORD: '1qaz@WSX'
MYSQL_ROOT_PASSWORD: '1qaz@WSX'
ports:
- '3306:3306'
expose:
- '3306'
volumes:
- my-db:/var/lib/mysql
networks:
- temp-monitor-network
# Names our volume
TemperatureMonitorAPI:
depends_on:
- db
image: fotisss/temperature-monitor-api
build:
context: './TemperatureMonitorAPI'
# dockerfile: ./Dockerfile
ports:
- "8080:80"
networks:
- temp-monitor-network
TemperatureMonitorWeb:
depends_on:
- TemperatureMonitorAPI
image: fotisss/temperature-monitor-web
build:
context: './TemperatureMonitorWeb'
ports:
- "8000:80"
networks:
- temp-monitor-network
volumes:
my-db:
networks:
temp-monitor-network: