-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
53 lines (51 loc) · 1 KB
/
docker-compose.yaml
File metadata and controls
53 lines (51 loc) · 1 KB
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
version: "3.1"
services:
db:
container_name: lah_db
image: postgres
volumes:
- /var/lib/postgresql/data/
ports:
- '${POSTGRES_PORT}:${POSTGRES_PORT}'
env_file:
- .env
api:
container_name: api
build: ./backend/api
restart: always
ports:
- "${BACKEND_PORT}:${BACKEND_PORT}"
expose:
- "${BACKEND_PORT}"
env_file:
- .env
depends_on:
- db
frontend:
container_name: react
build: ./frontend
restart: always
ports:
- "${FRONTEND_PORT}:${FRONTEND_PORT}"
expose:
- "${FRONTEND_PORT}"
depends_on:
- api
- chat
chat:
container_name: chat
build:
context: ./chat-service
dockerfile: Dockerfile
ports:
- '${CHAT_PORT}:${CHAT_PORT}'
restart: unless-stopped
depends_on:
- redis
environment:
REDIS_HOST: redis
REDIS_PORT: "${REDIS_PORT}"
redis:
container_name: redis
image: "redis:latest"
restart: unless-stopped