-1
I own the following Docker-Compose:
services:
mysql:
image: mysql:5.6
ports:
- "3316:3306"
volumes:
- ./database/setup:/docker-entrypoint-initdb.d
- ./database/data:/var/lib/mysql
- ~/Desktop/inserts.sql:/inserts.sql
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
- MYSQL_DATABASE=otima
- MYSQL_USER=otima
- MYSQL_PASSWORD=otima
web:
image: tomcat:9.0
ports:
- "8080:8080"
- "8000:8000"
depends_on:
- mysql
restart: always
volumes:
- ./src/main/webapp:/usr/local/tomcat/webapps/ROOT
logging:
driver: "json-file"
options:
max-size: "100k"
command: catalina.sh jpda run
environment:
JPDA_ADDRESS: "*:8000"
JPDA_TRANSPORT: dt_socket
JAVA_OPTS: >
-Ddatabase.config.url=jdbc:mysql://mysql/otima?useLegacyDatetimeCode=false
-Ddatabase.config.user=otima
-Ddatabase.config.password=otima
-Dmail.smtp_host=mailcatcher
-Dmail.smtp_port=1025
-Dsite.url=http://localhost:8080
-Dspring.profiles.active=local
-Dcluster-master=false
dns:
- 8.8.8.8
- 4.4.4.4
mailserver:
image: oninteractive/ubuntu-postfix
ports:
- "5080:25"
environment:
- "maildomain=mail.leve-me.com"
But every time I run it returns to me:take me-backend_web_1 exited with code 1 I don’t know what I’m doing wrong, I did some research and I couldn’t find anything about it. This is the first project I picked up using Docker.