WUT_Computer_Science/docker-compose.yml

88 lines
1.6 KiB
YAML
Raw Normal View History

2024-05-12 19:14:07 +02:00
version: '3.8'
2024-05-12 12:10:38 +02:00
services:
2024-05-12 19:14:07 +02:00
app:
2024-06-17 00:55:05 +02:00
build: ./connector
ports:
2024-06-17 00:07:14 +02:00
- "5000:8090" # Adjust if your app uses a different port
depends_on:
- db
2024-06-17 00:07:14 +02:00
networks:
- my-bridge-network
2024-05-12 12:10:38 +02:00
db:
image: postgres:13
environment:
2024-05-12 19:14:07 +02:00
POSTGRES_DB: test_db
2024-05-12 12:10:38 +02:00
POSTGRES_USER: root
POSTGRES_PASSWORD: root
ports:
- 5432:5432
volumes:
2024-05-12 19:14:07 +02:00
- postgres_data:/var/lib/postgresql/data
- ./database/init.sql:/docker-entrypoint-initdb.d/init.sql
2024-06-17 00:07:14 +02:00
networks:
- my-bridge-network
2024-05-12 12:10:38 +02:00
pgadmin:
container_name: admin_container
image: dpage/pgadmin4
ports:
- 8080:80
environment:
PGADMIN_DEFAULT_EMAIL: admin@admin.com
PGADMIN_DEFAULT_PASSWORD: admin
2024-06-17 00:07:14 +02:00
networks:
- my-bridge-network
nginx:
image: nginx:latest
container_name: nginx
2024-06-16 20:52:10 +02:00
ports:
2024-06-17 00:07:14 +02:00
- "80:80"
- "443:443"
volumes:
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf:ro
- ./nginx/ssl:/etc/ssl/certs
2024-06-16 20:52:10 +02:00
depends_on:
- app
2024-06-17 00:07:14 +02:00
networks:
- my-bridge-network
2024-05-12 12:10:38 +02:00
2024-06-17 00:55:05 +02:00
frontend:
container_name: frontend
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "8000:80"
depends_on:
- app
networks:
- my-bridge-network
2024-06-17 01:25:26 +02:00
movie_rec:
container_name: movie_rec
build: ./movie_recommendations
ports:
- "8081:8081"
depends_on:
- db
networks:
- my-bridge-network
analitics:
container_name: analytics
build: ./analytics
ports:
- "8082:8082"
depends_on:
- db
networks:
- my-bridge-network
2024-06-17 00:55:05 +02:00
2024-05-12 12:10:38 +02:00
volumes:
2024-06-17 00:07:14 +02:00
postgres_data:
networks:
my-bridge-network:
driver: bridge