# PayaraServer docker Compose

Fuente

{% embed url="https://hantsy.medium.com/put-your-jakarta-ee-8-applications-to-production-77756d1967bf" %}

fuente

{% embed url="https://github.com/payara/docker-payaraserver-full" %}





Cree el archivo docker-compose.yml

![](https://1214129823-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lc1Wg6KboeH6fWlkEGS%2F-MjuCfxCnnHt5MLE2sWp%2F-MjuGJ6WepBVBgzpPZwf%2FCaptura%20de%20pantalla%20de%202021-09-18%2013-57-18.png?alt=media\&token=414cd27a-2d18-4620-bd66-766bc5c4b769)

Agregue el contenido

```
version: '3.3' # specify docker-compose version
# Define the services/containers to be run
services:
  payara:
    image: payara/server-full
    ports:
      - "8080:8080"
      - "8181:8181" # HTTPS listener
      - "4848:4848" # HTTPS admin listener
      - "9009:9009" # Debug port
    restart: always
#    environment:
#    JVM_ARGS: ""
#     - "AS_ADMIN_MASTERPASSWORD=admin" #default password is `changeit`
    volumes:
      - ./deployments:/opt/payara/deployments
    environment:
      - ADMIN_USER=admin\
      - ADMIN_PASSWORD=denver16\
      - POSTBOOT_COMMANDS=./path/to/file
```

desde el directorio donde tiene el archivo dockjer-compose.yml ejecute

```
docker-compose up payara
```

si no tiene permisos ejecute con sudo

```
sudo docker-compose up payaradocker-compose up payara
```

al ejecutarlo

![](https://1214129823-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lc1Wg6KboeH6fWlkEGS%2F-MjuCfxCnnHt5MLE2sWp%2F-MjuGwu_BtnVd2dIvD1b%2Fd.png?alt=media\&token=929136cf-5a57-459e-971e-184d923ce979)

Si entramos al navegador

![](https://1214129823-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lc1Wg6KboeH6fWlkEGS%2F-MjuCfxCnnHt5MLE2sWp%2F-MjuH3jAWHfjpQV0dPsX%2Fd.png?alt=media\&token=3fcb70f2-de07-423f-97fa-85a6f90535cf)



Si ingreamos al 4848

![](https://1214129823-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lc1Wg6KboeH6fWlkEGS%2F-MjuH6ZNTwQd-7Xbzj7R%2F-MjuHOuM5rocuvm3yii7%2F4848.png?alt=media\&token=6379b9f6-8218-4a57-a6cd-f6a187598df8)

seleccionar Configuracion avanzada

![](https://1214129823-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lc1Wg6KboeH6fWlkEGS%2F-MjuH6ZNTwQd-7Xbzj7R%2F-MjuHZue7h8TCWdW4BMR%2Fsd.png?alt=media\&token=8fd90cd6-8af4-4166-b4d9-ba60236af2dc)

y nos pide el login

por defecto

```
user: admin
password: admin
```

![](https://1214129823-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lc1Wg6KboeH6fWlkEGS%2F-MjuH6ZNTwQd-7Xbzj7R%2F-MjuHh8dng6RSeqSzWy1%2Flogin.png?alt=media\&token=43b3a671-950d-4f94-a5cc-68202ee8fc4b)
