-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (43 loc) · 854 Bytes
/
docker-compose.yml
File metadata and controls
46 lines (43 loc) · 854 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
version: '2'
services:
mysql-app:
container_name: mysql-app
hostname: mysql-app
build:
context: ./mysql
environment:
MYSQL_ROOT_PASSWORD: notes-api
MYSQL_USER: notes-api
MYSQL_PASSWORD: notes-api
networks:
app_net:
ipv4_address: 10.10.0.10
node-app:
container_name: node-app
hostname: node-app
build:
context: ./nodejs
environment:
MYSQL_ROOT_PASSWORD: notes-api
MYSQL_USER: notes-api
networks:
app_net:
ipv4_address: 10.10.0.2
nginx-app:
container_name: nginx-app
hostname: nginx-app
build:
context: ./nginx
ports:
- 80:80
networks:
app_net:
ipv4_address: 10.10.0.3
networks:
app_net:
driver: bridge
ipam:
driver: default
config:
-
subnet: 10.10.0.0/24