-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (42 loc) · 985 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
services:
client:
build: ./client
ports:
- 3003:3003
environment:
- PORT=3003
- NODE_ENV=development
env_file:
- ./client/.env
volumes:
- ./client:/app
server:
build: ./server
ports:
- 5001:5001
environment:
- FLASK_APP=app/main.py
- FLASK_ENV=development
- PYTHONPATH=/app
- DATABASE_URL=postgresql+psycopg2://username:password@db:5432/dbname
- SECRET_KEY=your-secret-key
- JWT_SECRET_KEY=your-jwt-secret-key
env_file:
- ./server/.env
volumes:
- ./server:/app
depends_on:
- db
command: gunicorn -k geventwebsocket.gunicorn.workers.GeventWebSocketWorker -w 1 -b 0.0.0.0:5001 app.main:app
db:
image: postgres:13
environment:
POSTGRES_USER: username
POSTGRES_PASSWORD: password
POSTGRES_DB: dbname
volumes:
- postgres_data:/var/lib/postgresql/data/
ports:
- 5432:5432
volumes:
postgres_data: