projet-application-web/docker-compose.yml

37 lines
717 B
YAML
Raw Normal View History

2022-04-21 07:48:10 +00:00
version: "3"
services:
wildfly:
image: quay.io/wildfly/wildfly
2022-04-21 08:06:30 +00:00
container_name: wildfly
hostname: wildfly
2022-04-21 07:48:10 +00:00
ports:
2022-04-21 08:06:30 +00:00
- 8080:8080
- 9990:9990
2022-04-21 07:48:10 +00:00
volumes:
2022-04-21 08:06:30 +00:00
- ./build/libs/:/opt/jboss/wildfly/standalone/deployments/
2022-04-21 07:48:10 +00:00
environment:
- WILDFLY_PASSWORD=password
2022-04-21 08:06:30 +00:00
restart: always
mariadb:
image: mariadb
container_name: mariadb
hostname: mariadb
environment:
- MYSQL_USER=user
- MYSQL_PASSWORD=mypassword
- MYSQL_DATABASE=mydatabase
- MYSQL_ROOT_PASSWORD=rootpassword
ports:
- 3306:3306
volumes:
- ./mariadb/:/var/lib/mysql/
restart: always
2022-04-21 07:48:10 +00:00
volumes:
wildfly_data:
driver: local
2022-04-21 08:06:30 +00:00
mariadb:
driver: local