11services :
22 db :
3- build :
4- context : ./db
5- dockerfile : Dockerfile
6- volumes :
7- - postgres_data:/var/lib/postgresql/data/
8- environment :
9- - POSTGRES_USER=balancer
10- - POSTGRES_PASSWORD=balancer
11- - POSTGRES_DB=balancer_dev
12- ports :
13- - " 5433:5432"
14- networks :
15- app_net :
16- ipv4_address : 192.168.0.2
17- pgadmin :
18- container_name : pgadmin4
19- image : dpage/pgadmin4
3+ build :
4+ context : ./db
5+ dockerfile : Dockerfile
6+ volumes :
7+ - postgres_data:/var/lib/postgresql/data/
208 environment :
21- PGADMIN_DEFAULT_EMAIL : balancer-noreply@codeforphilly.org
22- PGADMIN_DEFAULT_PASSWORD : balancer
23- # PGADMIN_LISTEN_PORT = 80
24- # volumes:
25- # - ./pgadmin-data:/var/lib/pgadmin
26- # # PGADMIN_LISTEN_PORT = 80
9+ - POSTGRES_USER=balancer
10+ - POSTGRES_PASSWORD=balancer
11+ - POSTGRES_DB=balancer_dev
2712 ports :
28- - " 5050:80 "
13+ - " 5433:5432 "
2914 networks :
3015 app_net :
31- ipv4_address : 192.168.0.4
16+ ipv4_address : 192.168.0.2
17+ # pgadmin:
18+ # container_name: pgadmin4
19+ # image: dpage/pgadmin4
20+ # environment:
21+ # PGADMIN_DEFAULT_EMAIL: balancer-noreply@codeforphilly.org
22+ # PGADMIN_DEFAULT_PASSWORD: balancer
23+ # # PGADMIN_LISTEN_PORT = 80
24+ # # volumes:
25+ # # - ./pgadmin-data:/var/lib/pgadmin
26+ # # # PGADMIN_LISTEN_PORT = 80
27+ # ports:
28+ # - "5050:80"
29+ # networks:
30+ # app_net:
31+ # ipv4_address: 192.168.0.4
3232 backend :
3333 image : balancer-backend
3434 build : ./server
@@ -52,13 +52,13 @@ services:
5252 args :
5353 - IMAGE_NAME=balancer-frontend
5454 ports :
55- - " 3000:3000"
55+ - " 3000:3000"
5656 environment :
57- - CHOKIDAR_USEPOLLING=true
58- # - VITE_API_BASE_URL=https://balancertestsite.com/
57+ - CHOKIDAR_USEPOLLING=true
58+ # - VITE_API_BASE_URL=https://balancertestsite.com/
5959 volumes :
60- - " ./frontend:/usr/src/app:delegated"
61- - " /usr/src/app/node_modules/"
60+ - " ./frontend:/usr/src/app:delegated"
61+ - " /usr/src/app/node_modules/"
6262 depends_on :
6363 - backend
6464 networks :
@@ -72,4 +72,4 @@ networks:
7272 driver : default
7373 config :
7474 - subnet : " 192.168.0.0/24"
75- gateway : 192.168.0.1
75+ gateway : 192.168.0.1
0 commit comments