forked from SykamRaju/Voter-CRM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (48 loc) · 1.43 KB
/
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
40
41
42
43
44
45
46
47
48
49
version: "3"
services:
db:
image: sanbud/votercrm_db:latest
restart: always
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD : admin
volumes:
- 'votercrmdb:/var/lib/mysql'
healthcheck:
test: mysqladmin ping -h 127.0.0.1 --password=$$MYSQL_ROOT_PASSWORD
interval: 10s
timeout: 10s
retries: 3
backend:
image: sanbud/votercrm_backend:latest
depends_on:
db:
condition: service_healthy
links:
- "db"
environment:
DB_USER : "root"
DB_PASSWORD : "admin"
DB_HOST : "db"
DB_NAME : "voter_crm"
ports:
- "8000:8000"
# uncomment out below code to do local development.
# steps: Run 'docker compose up -d', make changes -> run again 'docker compose up -d'
# volumes:
# - './BackEnd:/app/BackEnd'
fromtend:
image: sanbud/votercrm_frontend:latest
ports:
- "8501:8501"
depends_on:
- backend
environment:
SERVER_URL: "backend"
# uncomment out below volumes to do local development.
# steps: Run 'docker compose up -d', make changes -> run again 'docker compose up -d'
# volumes:
# - './FrontEnd:/app/FrontEnd'
volumes:
votercrmdb: