mirror of
https://github.com/DarrylNixon/CrowdTLS-server.git
synced 2024-09-22 18:19:43 -07:00
37 lines
875 B
YAML
37 lines
875 B
YAML
|
version: '3.8'
|
||
|
services:
|
||
|
crowdtls-db:
|
||
|
image: postgres:15.3
|
||
|
container_name: crowdtls-db
|
||
|
restart: unless-stopped
|
||
|
healthcheck:
|
||
|
test: [ "CMD-SHELL", "pg_isready" ]
|
||
|
interval: 10s
|
||
|
timeout: 5s
|
||
|
retries: 5
|
||
|
volumes:
|
||
|
- crowdtls-db-data:/var/lib/postgresql/data
|
||
|
ports: [ "5432:5432" ]
|
||
|
env_file: [ .env ]
|
||
|
crowdtls:
|
||
|
build:
|
||
|
context: .
|
||
|
dockerfile: Dockerfile
|
||
|
args:
|
||
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||
|
- CROWDTLS_INTERNAL_WEB_PORT=${CROWDTLS_INTERNAL_WEB_PORT}
|
||
|
ports:
|
||
|
[
|
||
|
"${CROWDTLS_HOST_WEB_PORT}:${CROWDTLS_INTERNAL_WEB_PORT}"
|
||
|
]
|
||
|
image: crowdtls:latest
|
||
|
container_name: crowdtls
|
||
|
restart: unless-stopped
|
||
|
depends_on:
|
||
|
crowdtls-db:
|
||
|
condition: service_healthy
|
||
|
env_file: [ .env ]
|
||
|
volumes:
|
||
|
crowdtls-db-data:
|
||
|
name: crowdtls-db-data
|