init
This commit is contained in:
44
compose.yml
Normal file
44
compose.yml
Normal file
@@ -0,0 +1,44 @@
|
||||
services:
|
||||
redis:
|
||||
image: redis:alpine
|
||||
restart: always
|
||||
volumes:
|
||||
- ./data/redis:/data
|
||||
healthcheck:
|
||||
test: ["CMD", "redis-cli", "ping", "|", "grep", "PONG"]
|
||||
interval: 1s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
knot:
|
||||
build:
|
||||
context: ./repos/knot-docker/
|
||||
args:
|
||||
UID: 1000
|
||||
GID: 1000
|
||||
restart: always
|
||||
ports:
|
||||
- "2588:5555"
|
||||
- "2222:22"
|
||||
volumes:
|
||||
- ./keys:/etc/ssh/keys
|
||||
- ./repositories:/home/git/repositories
|
||||
- ./server:/app
|
||||
env_file:
|
||||
- ./envs/knot
|
||||
|
||||
appview:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: docker/appview/Dockerfile
|
||||
target: appview
|
||||
restart: always
|
||||
ports:
|
||||
- "2589:3000"
|
||||
volumes:
|
||||
- ./data/appview:/data
|
||||
env_file:
|
||||
- ./envs/appview
|
||||
depends_on:
|
||||
redis:
|
||||
condition: service_healthy
|
||||
Reference in New Issue
Block a user