Skip to content

Commit

Permalink
Add new docker-compose file
Browse files Browse the repository at this point in the history
  • Loading branch information
PolinaNovak committed Nov 12, 2024
1 parent 5aa1be7 commit b04f85a
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,43 +3,46 @@ version: '3.8'
services:
frontend:
build:
context: . # Контекст для фронтенда
dockerfile: Dockerfile.frontend # Указываем Dockerfile для фронтенда
context: .
dockerfile: Dockerfile
target: build_frontend # Указываем целевой образ для фронтенда
ports:
- "3000:3000"
networks:
- warehouse-network

warehouse2:
build:
context: . # Контекст для бэкенда
dockerfile: Dockerfile.backend # Указываем Dockerfile для бэкенда
context: .
dockerfile: Dockerfile
target: backend # Указываем целевой образ для бэкенда
ports:
- "8080:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Production
- DB_HOST=mongodb
- DB_HOST=arangodb
- DB_PORT=8529
depends_on:
- mongodb
- arangodb
networks:
- warehouse-network

mongodb:
image: mongo:latest
arangodb:
image: arangodb:latest
ports:
- "8529:27017"
- "8529:8529"
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=1234
- ARANGO_ROOT_PASSWORD=5DwY5BIAGFHpuSSE
- ARANGO_ROOT_USERNAME=root
- ARANGO_NO_AUTH=0
networks:
- warehouse-network
volumes:
- mongo_data:/data/db
- arango_data:/var/lib/arangodb3

networks:
warehouse-network:
driver: bridge

volumes:
mongo_data:
arango_data:

0 comments on commit b04f85a

Please sign in to comment.