docker-atlassian-confluence.../func-tests/docker-compose.yml
Eugene Ivantsov 8dce9d328c Merged in remote-valve-config (pull request #162)
Properly configure remoteIpValve

* Fix typos

* Fix more typos

* Fix unit tests

* Fix docker compose wait

* Rename remoteipvalve tests

* Fix docker compose yaml

* Add missing quotes

* Remove sleep

* Fix formatting

* More formatting


Approved-by: Yifei Zhang
2024-05-02 02:33:19 +00:00

46 lines
1.2 KiB
YAML

version: '3.5'
services:
postgresql:
build:
context: ./postgres
ports:
- '5432:5432'
environment:
- 'POSTGRES_DB=confluence'
- 'POSTGRES_USER=confluence'
- 'POSTGRES_PASSWORD=confluence'
- 'POSTGRES_ENCODING=utf-8'
- 'POSTGRES_COLLATE=utf-8'
- 'POSTGRES_COLLATE_TYPE=utf-8'
- "LANG=utf-8"
confluence:
build:
context: ./confluence
args:
- TEST_TARGET_IMAGE=${TEST_TARGET_IMAGE}
depends_on:
- postgresql
ports:
- '8090:8090'
entrypoint: ["/bin/bash", "-c"]
command: >
'command -v microdnf &> /dev/null && microdnf install -y nmap || { apt-get update -y && apt-get install -y netcat; } &&
/opt/atlassian/support/waitport postgresql 5432 &&
chown -R confluence.confluence /var/atlassian/application-data/confluence/ &&
/entrypoint.py'
smoketests:
build:
context: ./smoketests/
environment:
- CONFLUENCE_BASE_URL=http://confluence:8090
- CONFLUENCE_ADMIN=${CONFLUENCE_ADMIN}
- CONFLUENCE_ADMIN_PWD=${CONFLUENCE_ADMIN_PWD}
command: >
bash -c '
./bin/confluence-wait &&
pytest -v
'