Chat App Server that is simply a public place to store messages.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
ChatAppServer/docker-compose.yml

55 lines
868 B

version: '3.7'
services:
redis:
image: redis:latest
restart: always
command: redis-server --save 20 1 --loglevel warning
ports:
- "6379"
volumes:
- data:/data
chat_app:
container_name: chat_app
restart: always
env_file: .env
depends_on:
- redis
links:
- redis:redis
build:
context: .
dockerfile: Dockerfile
ports:
- "80"
volumes:
- .:/app
- ./static:/static:ro
chat_nginx:
image: nginx:latest
container_name: chat_nginx
restart: always
links:
- chat_app:chat_app
depends_on:
- chat_app
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- ./static:/static:ro
- ./cert.pem:/cert.pem
- ./privkey.pem:/privkey.pem
ports:
- 80:80
- 443:443
volumes:
data:
name: data