2024-10-14 03:59:23 +07:00
|
|
|
|
|
2024-10-14 03:51:57 +07:00
|
|
|
|
# Docker Compose файл для запуска двух контейнеров с приложением Ionic и настроенной сетью
|
|
|
|
|
version: '3.8'
|
|
|
|
|
|
|
|
|
|
networks:
|
|
|
|
|
ionic_net:
|
2024-10-14 03:59:23 +07:00
|
|
|
|
driver: bridge
|
2024-10-14 03:51:57 +07:00
|
|
|
|
ipam:
|
|
|
|
|
config:
|
|
|
|
|
- subnet: 172.168.0.0/24
|
|
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
app1:
|
|
|
|
|
build: .
|
|
|
|
|
container_name: ionic_app1
|
|
|
|
|
networks:
|
|
|
|
|
ionic_net:
|
|
|
|
|
ipv4_address: 172.168.0.2
|
|
|
|
|
ports:
|
|
|
|
|
- "8100:8100"
|
|
|
|
|
volumes:
|
|
|
|
|
- .:/app
|
2024-10-14 03:59:23 +07:00
|
|
|
|
deploy:
|
|
|
|
|
resources:
|
|
|
|
|
limits:
|
|
|
|
|
cpus: "0.5"
|
|
|
|
|
memory: "512M"
|
2024-10-14 03:51:57 +07:00
|
|
|
|
|
|
|
|
|
app2:
|
|
|
|
|
build: .
|
|
|
|
|
container_name: ionic_app2
|
|
|
|
|
networks:
|
|
|
|
|
ionic_net:
|
|
|
|
|
ipv4_address: 172.168.0.3
|
|
|
|
|
ports:
|
|
|
|
|
- "8101:8100"
|
|
|
|
|
volumes:
|
2024-10-14 03:59:23 +07:00
|
|
|
|
- .:/app
|
|
|
|
|
deploy:
|
|
|
|
|
resources:
|
|
|
|
|
limits:
|
|
|
|
|
cpus: "0.5"
|
|
|
|
|
memory: "512M"
|