11services :
2- 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
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
32- backend :
33- image : balancer-backend
34- build : ./server
35- command : python manage.py runserver 0.0.0.0:8000
36- ports :
37- - " 8000:8000"
38- env_file :
39- - ./config/env/env.dev
40- depends_on :
41- - db
42- volumes :
43- - ./server:/usr/src/server
44- networks :
45- app_net :
46- ipv4_address : 192.168.0.3
2+ # 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
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
32+ # backend:
33+ # image: balancer-backend
34+ # build: ./server
35+ # command: python manage.py runserver 0.0.0.0:8000
36+ # ports:
37+ # - "8000:8000"
38+ # env_file:
39+ # - ./config/env/env.dev
40+ # depends_on:
41+ # - db
42+ # volumes:
43+ # - ./server:/usr/src/server
44+ # networks:
45+ # app_net:
46+ # ipv4_address: 192.168.0.3
4747 frontend :
4848 image : balancer-frontend
4949 build :
@@ -52,15 +52,15 @@ 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/"
62- depends_on :
63- - backend
60+ - " ./frontend:/usr/src/app:delegated"
61+ - " /usr/src/app/node_modules/"
62+ # depends_on:
63+ # - backend
6464 networks :
6565 app_net :
6666 ipv4_address : 192.168.0.5
@@ -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