-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
39 lines (33 loc) · 1019 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
version: '3.8'
services:
db:
image: postgres:14
container_name: postgres-container
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: root
POSTGRES_DB: balkanid
volumes:
- "/Users/suraj/github-classroom/BalkanID-University/balkanid-summer-internship-vit-vellore-2023-suraj-ranganath/dbVol:/var/lib/postgresql/data:rw"
ports:
- "5432:5432"
expose:
- 5432
cache:
image: "redis:alpine"
app:
image: balkanidsummerinternshipvitvellore2023surajranganath
container_name: python-container
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: root
POSTGRES_DB: balkanid
POSTGRES_HOST: postgres-container
build:
context: .
dockerfile: Dockerfile
depends_on:
- db
- cache
volumes:
- "/Users/suraj/github-classroom/BalkanID-University/balkanid-summer-internship-vit-vellore-2023-suraj-ranganath/dbVol:/var/lib/postgresql/data:rw"