-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (33 loc) · 875 Bytes
/
docker-compose.yml
File metadata and controls
35 lines (33 loc) · 875 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
services:
# The Load Balancer is the main entry point for the system.
load_balancer:
build: ./load_balancer
container_name: load_balancer
ports:
- "5000:5000"
volumes:
# Mount the Windows named pipe for Docker communication
- '//./pipe/docker_engine:/var/run/docker.sock'
privileged: true
networks:
- LB_net
hostname: load_balancer
tty: true
# ADD THIS ENVIRONMENT SECTION
environment:
- POSTGRES_PASSWORD=mysecretpassword
# This is a template server used to build the image for all other servers.
dummy-server:
build: ./server
container_name: dummy-server
image: server-img:latest
networks:
- LB_net
hostname: dummy-server
tty: true
# ADD THIS ENVIRONMENT SECTION
environment:
- POSTGRES_PASSWORD=mysecretpassword
networks:
LB_net:
name: LB_net