-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (35 loc) · 811 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (35 loc) · 811 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
38
39
40
version: '3'
services:
database-mysql:
image: mysql:5.6
hostname: mysql
container_name: mysql
ports:
- 3307:3306
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- ./data:/var/lib/mysql
environment:
TZ: America/Sao_Paulo
MYSQL_ROOT_PASSWORD: 1234
MYSQL_DATABASE: useraccess
MYSQL_USER: useraccess
MYSQL_PASSWORD: 1234
network_mode: bridge
user-access:
build:
context: .
dockerfile: Dockerfile
image: com.eltonsandre/user-access:latest
hostname: user-access
container_name: user-access
ports:
- 8084:80
environment:
SPRING_PROFILES_ACTIVE: docker
depends_on:
- database-mysql
network_mode: bridge
links:
- database-mysql