-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (37 loc) · 826 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (37 loc) · 826 Bytes
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.4'
services:
mysqldb:
image: mysql:5.7.22
command: mysqld --default-authentication-plugin=mysql_native_password
restart: always
environment:
TZ: America/Sao_Paulo
MYSQL_ROOT_PASSWORD: docker
MYSQL_USER: docker
MYSQL_PASSWORD: docker
MYSQL_DATABASE: docker_to_aws_with_java
ports:
- "3307:3306"
networks:
- udemy-network
docker-to-aws-with-java:
image: docker-to-aws-with-java
restart: always
build:
context: .
dockerfile: app/Dockerfile
working_dir: /app
environment:
TZ: America/Sao_Paulo
ports:
- "8091:8080"
command: mvn spring-boot:run
links:
- mysqldb
depends_on:
- mysqldb
networks:
- udemy-network
networks:
udemy-network:
driver: bridge