# 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)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://avbravo-2.gitbook.io/docker/payaraserver-docker-compose.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
