forked from CorreiaEduardo/mangue-bem-monorepo
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
50 lines (50 loc) · 1.23 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
50
version: '3'
services:
mysql:
image: mysql:8.0
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: mangue-bem
healthcheck:
test: ["CMD", 'mysqladmin', 'ping', '-h', 'localhost', '-u', 'root', '-p$$MYSQL_ROOT_PASSWORD' ]
timeout: 20s
retries: 10
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
links:
- mysql
ports:
- 80:80
environment:
- PMA_ARBITRARY=1
- UPLOAD_LIMIT=300M
api:
build:
context: ./mangue-bem-api
dockerfile: Dockerfile
restart: always
ports:
- "8080:8080"
depends_on:
mysql:
condition: service_started
restart: true
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://mysql:3306/mangue-bem
SPRING_DATASOURCE_USERNAME: root
SPRING_DATASOURCE_PASSWORD: root
API_SECURITY_JWT_SECRET: KVASIFLFl=pZUHz#6RVzlYf(ooer*!m
INTEGRATION_SPECIESLINK_APIKEY: none
INTEGRATION_IUCNREDLIST_TOKEN: none
app:
build:
context: ./mangue-bem-web
dockerfile: Dockerfile
ports:
- "3000:80"
depends_on:
api:
condition: service_started
restart: true