forked from benninghoven/fullyhacks-2024
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
43 lines (36 loc) · 829 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
version: '3'
services:
flask-app:
image: python:3.10.2
volumes:
- ./backend:/app
ports:
- "15000:5000"
working_dir: /app
environment:
- FLASK_APP=app
- FLASK_RUN_HOST=0.0.0.0
command: sh -c "pip install --no-cache-dir -r requirements.txt && OPENAI_KEY=$(cat /run/secrets/openai_key) flask run --reload"
secrets:
- openai_key
networks:
- fullyhacks-network
web-app:
image: node:14-alpine
volumes:
- ./frontend/my-app:/app
ports:
- "3000:3000"
working_dir: /app
environment:
- NODE_ENV=development
- HOST=0.0.0.0
command: sh -c "npm install && npm start"
networks:
- fullyhacks-network
networks:
fullyhacks-network:
driver: bridge
secrets:
openai_key:
file: ./backend/openai_key.txt