79 lines
1.6 KiB
YAML
79 lines
1.6 KiB
YAML
services:
|
|
postgres:
|
|
image: postgres:16
|
|
restart: unless-stopped
|
|
networks:
|
|
default:
|
|
ipv4_address: 10.10.10.2
|
|
volumes:
|
|
- matrix_postgres_data:/var/lib/postgresql/data
|
|
environment:
|
|
- POSTGRES_DB=synapse
|
|
- POSTGRES_USER=synapse
|
|
- POSTGRES_PASSWORD=STRONGPASSWORD123
|
|
ports:
|
|
- "5432:5432"
|
|
|
|
element:
|
|
image: vectorim/element-web:latest
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./element-config.json:/app/config.json:ro
|
|
networks:
|
|
default:
|
|
ipv4_address: 10.10.10.3
|
|
ports:
|
|
- "8081:80"
|
|
|
|
synapse:
|
|
image: matrixdotorg/synapse:latest
|
|
restart: unless-stopped
|
|
networks:
|
|
default:
|
|
ipv4_address: 10.10.10.4
|
|
volumes:
|
|
- ./synapse_data:/data
|
|
depends_on:
|
|
- postgres
|
|
user: "0:0"
|
|
environment:
|
|
- UID=1000
|
|
- GID=1000
|
|
|
|
synapse-admin:
|
|
image: awesometechnologies/synapse-admin:latest
|
|
restart: unless-stopped
|
|
networks:
|
|
default:
|
|
ipv4_address: 10.10.10.5
|
|
ports:
|
|
- "8082:80"
|
|
depends_on:
|
|
- synapse
|
|
|
|
matrix-proxy:
|
|
image: nginx:alpine
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- synapse
|
|
networks:
|
|
default:
|
|
ipv4_address: 10.10.10.8
|
|
ports:
|
|
- "8008:80"
|
|
- "443:443"
|
|
volumes:
|
|
- ./configs/nginx/matrix-proxy.conf:/etc/nginx/conf.d/default.conf:ro
|
|
- ./configs/well-known:/var/www/well-known:ro
|
|
- ./configs/nginx/certs:/etc/nginx/certs:ro
|
|
|
|
volumes:
|
|
matrix_postgres_data:
|
|
external: true
|
|
name: matrix_postgres_data
|
|
|
|
networks:
|
|
default:
|
|
name: matrix_net
|
|
external: true
|