-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
40 lines (37 loc) · 1 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
40 lines (37 loc) · 1 KB
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
services:
# The Database Service
clinic-db:
image: postgres:16
container_name: clinic-db
restart: unless-stopped
environment:
POSTGRES_PASSWORD: leongclinic
volumes:
# Named volume for DB data persistence
- clinic_db_data:/var/lib/postgresql/data
networks:
- clinic-net
# The App Service
clinic-app:
image: mulberrydunes/leong-clinic:2.3 # <--- Change this to update versions
container_name: clinic-app
restart: unless-stopped
ports:
- "8000:8000"
environment:
- ENVIRONMENT=local
- DATABASE_URL=postgresql://postgres:leongclinic@clinic-db:5432/postgres
volumes:
# HOST_PATH : CONTAINER_PATH
# UPDATE THIS PATH for the specific computer you are deploying to
- "/mnt/c/Users/filepath/to/attachment_uploads:/app/backend/uploads"
depends_on:
- clinic-db
networks:
- clinic-net
# Define the persistent volume for the DB
volumes:
clinic_db_data:
# Define the network
networks:
clinic-net: