-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-image.yml
More file actions
55 lines (52 loc) · 1.2 KB
/
docker-compose-image.yml
File metadata and controls
55 lines (52 loc) · 1.2 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
services:
db:
image: mysql:8.0
container_name: mysql-db
restart: always
ports:
- "3307:3306"
environment:
MYSQL_ROOT_PASSWORD: passw0rd
MYSQL_DATABASE: clubfinder
volumes:
- ./my.cnf:/etc/mysql/conf.d/my.cnf:ro
command: --default-authentication-plugin=mysql_native_password
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "db", "-uroot", "-ppassw0rd"]
interval: 5s
timeout: 10s
retries: 10
ai:
image: zizonminji/clubfinder-ai:v1.1.0
container_name: ai-server
ports:
- "8000:8000"
environment:
OPENAI_API_KEY: ${OPENAI_API_KEY}
depends_on:
- db
back:
image: zizonminji/clubfinder-back:v1.1.0
container_name: back-server
ports:
- "8080:8080"
depends_on:
db:
condition: service_healthy
ai:
condition: service_started
environment:
SPRING_PROFILES_ACTIVE: ${SPRING_PROFILES_ACTIVE}
ADMIN_ID: ${ADMIN_ID}
ADMIN_PASSWORD: ${ADMIN_PASSWORD}
front:
image: zizonminji/clubfinder-front:v1.1.0
container_name: front-server
ports:
- "5173:80"
depends_on:
- ai
- back
- db
volumes:
db-data: