-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (33 loc) · 891 Bytes
/
docker-compose.yml
File metadata and controls
36 lines (33 loc) · 891 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
# docker-compose.yml
version: "3.8"
# docker-compose.yml
services:
backend:
build: ./backend
container_name: address-sync-backend
ports:
- "8000:8000"
volumes:
- ./backend:/app
- ./backend/data:/app/data
- /app/__pycache__ # Prevent caching issues
environment:
- DATABASE_URL=sqlite:///./data/address_sync.db
- SECRET_KEY=your-secret-key-change-in-production-12345
- DEBUG=True
# Override the CMD to enable reload
command: uvicorn main:app --host 0.0.0.0 --port 8000 --reload
restart: unless-stopped
# Optional: Add frontend service if you want to serve it
# frontend:
# build: ./frontend
# container_name: address-sync-frontend
# ports:
# - "3000:3000"
# depends_on:
# - backend
# networks:
# - address-sync-network
networks:
address-sync-network:
driver: bridge