Skip to content

Commit da8f4db

Browse files
author
secus
committed
Add docker-compose.test.yml for test environment
1 parent 2fa28a7 commit da8f4db

2 files changed

Lines changed: 28 additions & 90 deletions

File tree

docker-compose.test.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
version: '3.8'
2+
3+
services:
4+
container-engine:
5+
build:
6+
context: .
7+
dockerfile: Dockerfile
8+
image: open-container-engine:test
9+
container_name: container-engine
10+
ports:
11+
- "9001:8080"
12+
volumes:
13+
- ./k8sConfigTest.yaml:/app/k8sConfigTest.yaml:ro
14+
environment:
15+
- DATABASE_URL=postgresql://postgres:password@localhost:5432/container_engine
16+
- REDIS_URL=redis://localhost:6379
17+
- JWT_SECRET=my-super-secret-key
18+
- DOMAIN_SUFFIX=localhost
19+
- PORT=8080
20+
- KUBECONFIG_PATH=./k8sConfigTest.yaml
21+
- KUBERNETES_NAMESPACE=default
22+
restart: unless-stopped
23+
healthcheck:
24+
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
25+
interval: 30s
26+
timeout: 10s
27+
retries: 3
28+
start_period: 40s

docker-compose.yml

Lines changed: 0 additions & 90 deletions
This file was deleted.

0 commit comments

Comments
 (0)