2024-11-25 02:10:37 +04:00
|
|
|
version: '3.7'
|
|
|
|
|
|
|
|
services:
|
|
|
|
authors:
|
|
|
|
build:
|
|
|
|
context: ./authors
|
|
|
|
ports:
|
|
|
|
- "3000:3000"
|
2024-11-25 02:23:32 +04:00
|
|
|
networks:
|
|
|
|
- app-network
|
2024-11-25 02:10:37 +04:00
|
|
|
|
|
|
|
books:
|
|
|
|
build:
|
|
|
|
context: ./books
|
|
|
|
ports:
|
|
|
|
- "3001:3001"
|
2024-11-25 02:23:32 +04:00
|
|
|
networks:
|
|
|
|
- app-network
|
|
|
|
depends_on:
|
|
|
|
- authors
|
2024-11-25 02:10:37 +04:00
|
|
|
|
|
|
|
nginx:
|
|
|
|
image: nginx:latest
|
|
|
|
ports:
|
|
|
|
- "80:80"
|
|
|
|
volumes:
|
2024-11-25 02:23:32 +04:00
|
|
|
- ./nginx.conf:/etc/nginx/nginx.conf
|
|
|
|
depends_on:
|
|
|
|
- authors
|
|
|
|
- books
|
|
|
|
networks:
|
|
|
|
- app-network
|
|
|
|
|
|
|
|
networks:
|
|
|
|
app-network:
|
|
|
|
driver: bridge
|