added docker compose to run everything in one go

This commit is contained in:
2024-05-12 15:29:36 +01:00
parent 0c0d16c846
commit 516d1d7634
18 changed files with 184 additions and 91 deletions

View File

@@ -1,11 +1,37 @@
version: "3.1"
services:
db:
image: docker.andr3h3nriqu3s.com/services/postgres
command: -c 'max_connections=600'
restart: always
environment:
POSTGRES_PASSWORD: verysafepassword
ports:
- "5432:5432"
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"
proxy-server:
image: andre-fyp-proxy
networks:
- fyp-network
ports:
- "8000:8000"
depends_on:
- web-page
- server
networks:
fyp-network: {}