This repository has been archived by the owner on Dec 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-deployment.yml
86 lines (80 loc) · 2.52 KB
/
docker-compose-deployment.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
networks:
koi_networks_on_deployment:
driver: bridge
services:
mysql:
image: lcaohoanq/koiauction_on_ci:latest # reflect latest db version there
container_name: mysql_db_koi_deployment
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "-h", "localhost" ]
timeout: 20s
retries: 10
networks:
- koi_networks_on_deployment
environment:
MYSQL_ROOT_PASSWORD: Luucaohoang1604^^
MYSQL_DATABASE: koi_company_dev_db # db inside the lcaohoanq/koiauction_on_ci:1.0 container
MYSQL_USER: lcaohoanq
MYSQL_PASSWORD: Luucaohoang1604^^
volumes:
- mysql_data_deployment:/var/lib/mysql # Persist MySQL data
ports:
- "3306:3306"
phpmyadmin:
image: phpmyadmin:5
container_name: phpmyadmin_ui_koi_deployment
networks:
- koi_networks_on_deployment
environment:
PMA_HOST: mysql_db_koi_deployment # Hostname of the MySQL service (container name)
PMA_USER: root # MySQL root user
PMA_PASSWORD: Luucaohoang1604^^ # MySQL root password
ports:
- "81:80" # Expose phpMyAdmin on port 81
koiauction:
image: lcaohoanq/koiauction_on_cd:latest #change version here
container_name: koiauction_on_deployment
networks:
- koi_networks_on_deployment
ports:
- "8088:4000"
depends_on:
mysql:
condition: service_healthy
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://mysql_db_koi_deployment:3306/koi_company_dev_db
SPRING_DATASOURCE_USERNAME: root
SPRING_DATASOURCE_PASSWORD: Luucaohoang1604^^
# SPRING_PROFILES_ACTIVE: dev
prometheus:
image: prom/prometheus
container_name: prometheus_koi_development
ports:
- "9091:9090"
restart: unless-stopped
volumes:
- ./config/prometheus:/etc/prometheus
networks:
- koi_networks_on_deployment
extra_hosts:
- "host.docker.internal:host-gateway"
# connection Prometheus server URL
# http://prometheus:9091(prometheus is the service name)
# not use localhost because localhost refer to grafana itself
grafana:
image: grafana/grafana
container_name: grafana_koi_development
ports:
- "3003:3000"
environment:
- GF_SECURITY_ADMIN_USER=sysadmin
- GF_SECURITY_ADMIN_PASSWORD=sysadmin
volumes:
- grafana_data_deployment:/var/lib/grafana
networks:
- koi_networks_on_deployment
volumes:
mysql_data_deployment:
driver: local
grafana_data_deployment:
driver: local