-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
37 lines (35 loc) · 1.07 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
version: '3.9'
services:
# app:
# image: 'lucianobrum/springdata:${ARTIFACT_VERSION}'
# env_file:
# - .env
# build:
# context: .
# args:
# SPRING_PROFILES_ACTIVE: ${SPRING_PROFILES_ACTIVE}
# APP_PORT: ${APP_PORT}
# DB_PORT: ${DB_PORT}
# ROOT_USERNAME: ${ROOT_USERNAME}
# ROOT_PASSWORD: ${ROOT_PASSWORD}
# container_name: app
# restart: always
# depends_on:
# - db
# ports:
# - ${APP_PORT}:8080
db:
environment:
MYSQL_ROOT_PASSWORD: ${ROOT_PASSWORD}
MYSQL_INITDB_SKIP_TZINFO: "yes"
image: mariadb:10.9.5@sha256:d3783098334e0b41054dff7f656ab7fb24e7a950a6ff81486df3dc7a82b48169
container_name: my_db
restart: always
volumes:
- ./src/main/resources/db/init/create_databases.sql:/docker-entrypoint-initdb.d/create_databases.sql
- type: bind
source: ./db_data
target: /var/lib/mysql
ports:
- ${DB_PORT}:${DB_PORT}
#command: mysqld --max_connections=151 # esse é o valor default: aumentar conforme a necessidade em /etc/my.cnf.d/server.cnf