47 lines
954 B
YAML
47 lines
954 B
YAML
version: "3"
|
|
|
|
services:
|
|
mysql:
|
|
image: mysql:8
|
|
restart: always
|
|
environment:
|
|
- MYSQL_ROOT_PASSWORD=password
|
|
- MYSQL_USER=user
|
|
- MYSQL_PASSWORD=password
|
|
- MYSQL_DATABASE=db
|
|
command: --default-authentication-plugin=mysql_native_password
|
|
|
|
phpmyadmin:
|
|
image: phpmyadmin/phpmyadmin:4.8.2
|
|
links:
|
|
- mysql:db
|
|
restart: always
|
|
depends_on:
|
|
- mysql
|
|
ports:
|
|
- 8081:80
|
|
environment:
|
|
- PMA_USER=root
|
|
- PMA_PASSWORD=password
|
|
- MYSQL_ROOT_PASSWORD=password
|
|
- MYSQL_USER=user
|
|
- MYSQL_PASSWORD=password
|
|
- MYSQL_DATABASE=db
|
|
|
|
wildfly:
|
|
build:
|
|
context: ./
|
|
dockerfile: Dockerfile
|
|
restart: always
|
|
volumes:
|
|
- ./deployments:/opt/jboss/wildfly/standalone/deployments/
|
|
- ./config:/opt/jboss/wildfly/standalone/configuration
|
|
links:
|
|
- mysql
|
|
depends_on:
|
|
- mysql
|
|
ports:
|
|
- 8085:8080
|
|
- 9990:9990
|
|
|