64 lines
1.2 KiB
YAML
64 lines
1.2 KiB
YAML
services:
|
|
postgres:
|
|
image: postgres:16-alpine
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_USER: mremotify
|
|
POSTGRES_PASSWORD: mremotify
|
|
POSTGRES_DB: mremotify
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
networks:
|
|
- internal
|
|
healthcheck:
|
|
test: ['CMD-SHELL', 'pg_isready -U mremotify']
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 10
|
|
|
|
rdpd:
|
|
build:
|
|
context: .
|
|
dockerfile: rdpd/Dockerfile
|
|
restart: unless-stopped
|
|
environment:
|
|
RDPD_LISTEN: 0.0.0.0:7777
|
|
RDPD_LOG_LEVEL: info
|
|
networks:
|
|
- internal
|
|
|
|
backend:
|
|
build:
|
|
context: .
|
|
dockerfile: docker/backend.Dockerfile
|
|
restart: unless-stopped
|
|
env_file: .env
|
|
environment:
|
|
POSTGRES_URL: postgresql://mremotify:mremotify@postgres:5432/mremotify
|
|
RDPD_URL: ws://rdpd:7777
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
rdpd:
|
|
condition: service_started
|
|
networks:
|
|
- internal
|
|
|
|
frontend:
|
|
build:
|
|
context: .
|
|
dockerfile: docker/frontend.Dockerfile
|
|
restart: unless-stopped
|
|
ports:
|
|
- '80:80'
|
|
depends_on:
|
|
- backend
|
|
networks:
|
|
- internal
|
|
|
|
networks:
|
|
internal:
|
|
|
|
volumes:
|
|
postgres_data:
|