2023-06-07 14:35:48 -07:00
|
|
|
version: '3.8'
|
|
|
|
services:
|
2023-06-07 20:02:49 -07:00
|
|
|
|
2023-06-07 14:35:48 -07:00
|
|
|
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 ]
|
2023-06-07 20:02:49 -07:00
|
|
|
|
2023-06-07 14:35:48 -07:00
|
|
|
crowdtls:
|
|
|
|
build:
|
|
|
|
context: .
|
2023-06-07 20:02:49 -07:00
|
|
|
dockerfile: crowdtls.Dockerfile
|
2023-06-07 14:35:48 -07:00
|
|
|
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 ]
|
2023-06-07 20:02:49 -07:00
|
|
|
|
|
|
|
crowdtls-adminer:
|
|
|
|
image: adminer:latest
|
|
|
|
container_name: crowdtls-adminer
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: adminer.Dockerfile
|
|
|
|
restart: unless-stopped
|
|
|
|
ports:
|
|
|
|
- 8001:8080
|
|
|
|
depends_on:
|
|
|
|
crowdtls-db:
|
|
|
|
condition: service_healthy
|
|
|
|
|
2023-06-07 14:35:48 -07:00
|
|
|
volumes:
|
|
|
|
crowdtls-db-data:
|
|
|
|
name: crowdtls-db-data
|