-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
49 lines (44 loc) · 1.25 KB
/
compose.yaml
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
version: '3.8'
services:
server:
build:
context: .
args:
MYSQL_USER: laminar
MYSQL_PASSWORD: ${MYSQL_PASSWORD:-password}
MYSQL_URL: jdbc:mysql://mysql:3306/laminar?useSSL=false&allowPublicKeyRetrieval=true
EXECUTION_URL: ${LAMINAR_EXECUTION_URL:-host.docker.internal}
EXECUTION_PORT: ${LAMINAR_EXECUTION_PORT:-5000}
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://mysql:3306/laminar?useSSL=false&allowPublicKeyRetrieval=true
SPRING_DATASOURCE_USERNAME: laminar
SPRING_DATASOURCE_PASSWORD: ${MYSQL_PASSWORD:-password}
ports:
- ${LAMINAR_SERVER_PORT:-8080}:8080
depends_on:
mysql:
condition: service_healthy
networks:
- laminar-network
mysql:
image: mysql:latest
restart: always
environment:
MYSQL_DATABASE: laminar
MYSQL_USER: laminar
MYSQL_PASSWORD: ${MYSQL_PASSWORD:-password}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-password}
volumes:
- laminar-db:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 10s
timeout: 5s
retries: 5
networks:
- laminar-network
volumes:
laminar-db:
networks:
laminar-network:
driver: bridge