-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (34 loc) · 810 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (34 loc) · 810 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
version: '3.8'
name: docker_nodejs1b_1
services:
nginx_lb:
image: nginx:latest
container_name: nginx_load_balancer_nodejs1b
volumes:
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf:ro
ports:
- "8000:80"
depends_on:
- app1
- app2
networks:
- nodejs-network
app1:
build:
context: . # TITIK artinya di folder saat ini (root)
dockerfile: Dockerfile
image: nodejs1b:v1
container_name: container_nodejs1b_1
networks:
- nodejs-network
app2:
build:
context: . # TITIK artinya di folder saat ini (root)
dockerfile: Dockerfile
image: nodejs1b:v1
container_name: container_nodejs1b_2
networks:
- nodejs-network
networks:
nodejs-network:
driver: bridge