Begin cleanup of elementweb deployment

This commit is contained in:
Nico Schottelius 2023-09-29 13:06:17 +02:00
parent 83e431669f
commit af6293c990

View file

@ -1,44 +1,24 @@
version: '3' version: '3'
services: services:
synapse: elementweb:
image: matrixdotorg/synapse:latest
restart: unless-stopped
environment:
- SYNAPSE_CONFIG_PATH=/data/homeserver.yaml
- SERVERNAME=${homeServerFQDN}
- PUBLICBASEURL=${synapseFQDN}
- ELEMENTWEB=${elementWebFQDN}
ports:
- "8008:8008/tcp"
volumes:
- ./synapse:/data
entrypoint: sh -c "/data/homeserver.yaml.sh && chmod -R 777 /data && /start.py"
depends_on:
- postgres
element:
image: vectorim/element-web:latest image: vectorim/element-web:latest
restart: unless-stopped restart: unless-stopped
environment: environment:
- SERVERNAME=${homeServerFQDN} - SERVERNAME=${homeServerFQDN}
- PUBLICBASEURL=${synapseFQDN} - PUBLICBASEURL=${synapseFQDN}
- ELEMENTWEB=${elementWebFQDN} - ELEMENTWEB=${elementWebFQDN}
volumes: #volumes:
- ./element/config.json.sh:/app/config.json.sh # - ./element/config.json.sh:/app/config.json.sh
command: sh -c "/app/config.json.sh && nginx -g 'daemon off;'" #command: sh -c "/app/config.json.sh && nginx -g 'daemon off;'"
#entrypoint: /app/config.json.sh entrypoint: /app/config.json.sh
ports: ports:
- "80:80/tcp" - "80:80/tcp"
postgres: nginx:
image: postgres:14 image: nginx:${NGINX_VERSION}
restart: unless-stopped
ports: ports:
- "5432:5432/tcp" - "80:80/tcp"
- "443:443/tcp"
volumes: volumes:
- ./postgresdata:/var/lib/postgresql/data - ./nginx:/etc/nginx/conf.d
environment: - /ssl:/ssl
- POSTGRES_DB=synapse
- POSTGRES_USER=synapse
- POSTGRES_PASSWORD=NEEDTOSETPASSWORD
- POSTGRES_INITDB_ARGS=--encoding=UTF-8 --lc-collate=C --lc-ctype=C