2023-09-19 13:39:59 +01:00
|
|
|
services:
|
2024-05-12 15:29:36 +01:00
|
|
|
db:
|
|
|
|
image: docker.io/postgres:16.3
|
|
|
|
command: -c 'max_connections=600'
|
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
- fyp-network
|
|
|
|
environment:
|
|
|
|
POSTGRES_PASSWORD: verysafepassword
|
|
|
|
ports:
|
|
|
|
- "5432:5432"
|
|
|
|
web-page:
|
|
|
|
image: andre-fyp-web-server
|
|
|
|
hostname: webpage
|
|
|
|
networks:
|
|
|
|
- fyp-network
|
|
|
|
server:
|
|
|
|
image: andre-fyp-server
|
|
|
|
hostname: server
|
|
|
|
networks:
|
|
|
|
- fyp-network
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
volumes:
|
|
|
|
- "./config.toml:/app/config.toml"
|
2024-05-15 05:32:49 +01:00
|
|
|
deploy:
|
|
|
|
resources:
|
|
|
|
reservations:
|
|
|
|
devices:
|
|
|
|
- driver: nvidia
|
|
|
|
count: 1
|
|
|
|
capabilities: [gpu]
|
2024-05-12 15:29:36 +01:00
|
|
|
proxy-server:
|
|
|
|
image: andre-fyp-proxy
|
|
|
|
networks:
|
|
|
|
- fyp-network
|
|
|
|
ports:
|
|
|
|
- "8000:8000"
|
|
|
|
depends_on:
|
|
|
|
- web-page
|
|
|
|
- server
|
|
|
|
|
|
|
|
networks:
|
|
|
|
fyp-network: {}
|