-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (42 loc) · 1009 Bytes
/
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
version: "3"
services:
api:
build: ./api
image: api
command: python app.py
depends_on:
- postgres
environment:
ENVIRONEMENT: "DEV"
APPLICATION_HOST: "0.0.0.0"
APPLICATION_PORT: 4000
APPLICATION_POSTGRES_PW: postgrespasswd
APPLICATION_POSTGRES_DB: chat_app
ports:
- "4000:4000"
volumes:
- ./api:/usr/src/app
postgres:
build: ./postgres
image: postgres:14-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgrespasswd
POSTGRES_DB: chat_app
PGDATA: /var/lib/postgres/data/pgdata
ports:
- "5432:5432"
volumes:
- ~/.chat_app/pgdata:/var/lib/postgres/data/pgdata
ui:
build: ./ui
image: ui
command: npm run start
environment:
PORT: 3000
CHAT_API_ENDPOINT: http://localhost:4000
ports:
- "3000:3000"
volumes:
- ./ui:/usr/src/app
- /usr/src/app/node_modules