-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (41 loc) · 1.08 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
# version: '3'
services:
api:
build:
context: ./chat_server/chat # Path to your Python server Dockerfile
ports:
- "5002:5002" # Adjust port if needed
depends_on:
- react-webapp
# - postgres
environment:
- PGUSER=postgres
- PGPASSWORD=Winterpark5!
- PGHOST=database-1.cdcuami0ixkj.us-east-2.rds.amazonaws.com
- PGPORT=5432
- PGDATABASE=munidb
- DATABASE_URL=postgresql://postgres:password@postgres:5432/postgres
- OPENAI_API_KEY=${OPENAI_API_KEY}
- PAYPAL_CLIENT_ID=${PAYPAL_CLIENT_ID}
- PAYPAL_CLIENT_SECRET=${PAYPAL_CLIENT_SECRET}
nginx:
depends_on:
- api
- react-webapp
restart: always
image: nginx:latest
volumes:
- ./nginx/default.conf:/etc/nginx/nginx.conf
ports:
- "443:443"
- "80:80"
react-webapp:
container_name: react-webapp
build:
context: ./chat_site # Path to your React web app Dockerfile
ports:
- "3000:3000" # Adjust port if needed
# volumes:
# my_volume:
# driver_opts:
# size: "10G"