lovespeech/compose.yml

30 lines
653 B
YAML

services:
# the websocket-server
nginx:
stop_grace_period: 1s
build: 'nginx'
ports:
- 443:443
volumes:
- ./nginx/ssl.d:/ssl.d
# the websocket-server
websocket-server:
stop_grace_period: 1s
restart: always
environment:
PYTHONUNBUFFERED: true
build: 'websocket-server'
expose:
- 1080
volumes:
- ./websocket-server/entrypoint.py:/mnt/entrypoint.py
# the client
client-test-websocket:
stop_grace_period: 1s
environment:
USER: ${USER}
build: 'client-test-websocket'
restart: on-failure
depends_on:
websocket-server:
condition: service_started