-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (45 loc) · 824 Bytes
/
docker-compose.yml
File metadata and controls
50 lines (45 loc) · 824 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
41
42
43
44
45
46
47
48
49
50
version: '3.9'
services:
nginx:
image: nginx
container_name: proxy
networks:
- my-network
volumes:
- nginx-vol:/etc/nginx/
ports:
- 80:80
tomcat:
image: tomcat:9.0
container_name: mytom
networks:
- my-network
volumes:
- tom-vol:/usr/local/tomcat
ports:
- 8080:8080
database:
image: mysql
container_name: mydb
networks:
- my-network
environment:
- MYSQL_ROOT_PASSWORD=root
- DATABASE=UserDB
- MYSQL_USER=admin
- MYSQL_PASSWORD=senha123
- MYSQL_ALLOW_EMPTY_PASSWORD=no
- MYSQL_USER_HOST='%'
volumes:
- db-vol:/etc
- db-vol2:/var/lib/mysql
ports:
- 3306:3306
volumes:
tom-vol:
db-vol:
nginx-vol:
db-vol2:
networks:
my-network:
driver: bridge