version: '3.8'
services:
frontend:
image: xxxxxxx/frontend:latest
restart: unless-stopped
pull_policy: always
container_name: react-frontend
ports:
- "80:8008" # Expose the frontend on port 80 of the host - for outside communication
depends_on:
- app
networks:
- appnetwork # Connect frontend to the internal appnetwork
environment:
- REACT_APP_API_SERVER=backender ## http://app:8080
- REMOTE_SERVER=http://app:8080
app:
image: 'ZZZZZ/backend:latest'
restart: unless-stopped
pull_policy: always
container_name: app
ports:
- '8080' # accessible on appnetwork only
depends_on:
- postgres
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://db:5432/postgres
- SPRING_DATASOURCE_USERNAME=root
- SPRING_DATASOURCE_PASSWORD=fdsgdsfgdsfgdshfsdfjg
- SPRING_JPA_HIBERNATE_DDL_AUTO=update
- TOMCAT_PORT=8080
networks:
- appnetwork # Use appnetwork for backend communications
$ sudo systemctl restart docker
// затем уже билдdocker build --network=host -t your-image .
сhrome --remote-debugging-port=9222 --user-data-dir="~/ChromeProfile"
chrome_options = Options()
chrome_options.add_experimental_option("debuggerAddress", "127.0.0.1:9222")
driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()), options=chrome_options)
data = json.loads(response.text)
# Import JSON module
import json
# Define JSON string
jsonString = '{ "id": 121, "name": "Naveen", "course": "MERN Stack"}'
# Convert JSON String to Python
student_details = json.loads(jsonString)
# Print Dictionary
print(student_details)
# Print values using keys
print(student_details['name'])
print(student_details['course'])