-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (42 loc) · 974 Bytes
/
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
38
39
40
41
42
43
44
45
46
version: "2.1"
services:
app:
container_name: "app"
build:
context: ./
dockerfile: Dockerfile
args:
# If you are behind a proxy, this will be needed for the build
# Note: http_proxy is one of the predefined ARGs of docker
- http_proxy
environment:
- WILDFLY_USER=admin
- WILDFLY_PASS=adminPassword
- WILDFLY_USERAPP=user
- WILDFLY_USERPWD=password
- DB_NAME=ipstddb
- DB_USER=ipst
- DB_PASS=ipst
- DB_URI=db:3306
depends_on:
- db
ports:
- "8080:8080" # application
- "9990:9990" # admin console
db:
container_name: "db"
image: "mysql:5.7.25"
environment:
- MYSQL_DATABASE=ipstddb
- MYSQL_USER=ipst
- MYSQL_PASSWORD=ipst
- MYSQL_ROOT_PASSWORD=supersecret
volumes:
- dbdata:/var/lib/mysql/
ports:
- "3306:3306"
networks:
default:
driver: bridge
volumes:
dbdata: