-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathdocker-compose.yml
64 lines (57 loc) · 1.4 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
version: '3.7'
services:
redis:
image: redis/redis-stack:6.2.6-v10
volumes:
- ./redis-data:/data/
ports:
- "6379:6379"
- "8001:8001"
video-chat-server:
build:
context: .
dockerfile: ./videocallserver/Dockerfile
image: video-chat:latest
ports:
- "8881:8881"
backend:
image: apssouza/chatux:latest
depends_on:
- postgres
- redis
volumes:
- ./server/src:/app/src
- ./chat-ui/build:/app/frontend
- ./server/src/uploads:/app/uploads
environment:
REDIS_DB: 0
SERVER_HOST: "0.0.0.0"
REDIS_HOST: ${REDIS_HOST:-redis}
REDIS_PORT: ${REDIS_PORT:-6379}
REDIS_PASSWORD: ${REDIS_PASSWORD}
PGSQL_HOST: ${PGSQL_HOST:-postgres}
PGSQL_PORT: ${PGSQL_PORT:-5432}
PGSQL_PASS: ${PGSQL_PASS:-postgres}
PGSQL_USER: ${PGSQL_USER:-chatux}
PGSQL_DB: ${PGSQL_DB:-postgres}
ports:
- "8880:8880"
working_dir: /app/src
command: ["sh", "/app/src/prepare-and-start.sh"]
postgres:
image: postgres:14.1-alpine
restart: always
environment:
- POSTGRES_USER=chatux
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
ports:
- '5432:5432'
volumes:
- ./postgres-data:/var/lib/postgresql/data
- ./script.sql:/docker-entrypoint-initdb.d/init.sql
volumes:
redis:
driver: local
postgres:
driver: local