-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (39 loc) · 839 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (39 loc) · 839 Bytes
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
version: '3.8'
services:
# Service Backend (Flask)
backend:
build: .
ports:
- "5000:5000"
volumes:
- ./src:/app
- ./src/uploads:/app/uploads
environment:
- FLASK_APP=app.py
# - FLASK_ENV=development
- RAWG_API_KEY=${RAWG_API_KEY}
- FLASK_DEBUG=1 # A commenter plus tard quand go prod
depends_on:
- db
# Service Frontend (React)
frontend:
build:
context: ./ui
dockerfile: Dockerfile.dev
ports:
- "3000:3000"
volumes:
- ./ui:/app
- /app/node_modules
stdin_open: true
tty: true
db:
image: postgres:14-alpine
environment:
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
- POSTGRES_DB=forum_db
volumes:
- ./data:/var/lib/postgresql/data
ports:
- "5432:5432"