added docker compose to run everything in one go
This commit is contained in:
@@ -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: {}
|
||||
|
||||
Reference in New Issue
Block a user