-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (39 loc) · 879 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (39 loc) · 879 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
43
44
version: '3.8'
services:
redis:
image: redis:latest
restart: always
command: redis-server --requirepass ${REDIS_PASSWORD}
ports:
- "${REDIS_PORT}:${REDIS_PORT}"
env_file:
- .env
networks:
- internal
volumes:
- redis-data:/data
backend:
build:
context: .
dockerfile: Dockerfile
ports:
# host : container
- "${APP_PORT}:${APP_PORT}"
depends_on:
- redis
env_file:
- .env
environment:
- REDIS_HOST=redis
- REDIS_PASSWORD=${REDIS_PASSWORD}
# Comment the line below for production
command: uvicorn backend.app.main:app --host ${APP_HOST} --port ${APP_PORT} --reload-dir /app --reload
networks:
- internal
volumes:
- ./backend/app:/app/backend/app
- ./frontend:/app/frontend
volumes:
redis-data:
networks:
internal: