-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
49 lines (45 loc) · 922 Bytes
/
docker-compose.yaml
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
version: "3.9"
services:
chatty-db:
image: postgres:14.2-alpine
container_name: chatty-db
hostname: chatty-db
ports:
- 5432:5432
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
volumes:
- chatty-data:/var/lib/postgresql/data
restart: unless-stopped
networks:
- chatty-app
chatty-ui:
stdin_open: true
build:
context: ./chatty
dockerfile: ./Dockerfile
container_name: chatty-ui
ports:
- "3000:3000"
depends_on:
- chatty-api
networks:
- chatty-app
chatty-api:
stdin_open: true
build:
context: ./server
dockerfile: ./Dockerfile
container_name: chatty-api
ports:
- "4000:4000"
restart: always
networks:
- chatty-app
networks:
chatty-app:
driver: bridge
volumes:
chatty-data: