Initial commit
This commit is contained in:
30
docker-compose.yml
Executable file
30
docker-compose.yml
Executable file
@@ -0,0 +1,30 @@
|
||||
services:
|
||||
proxy:
|
||||
build: .
|
||||
container_name: proxy
|
||||
ports:
|
||||
- "5050:5050"
|
||||
depends_on:
|
||||
- redis
|
||||
healthcheck:
|
||||
test: [ "CMD", "python3", "/app/test.py" ]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
|
||||
redis:
|
||||
image: redis:latest
|
||||
container_name: redis
|
||||
restart: unless-stopped
|
||||
command: [ "redis-server" ]
|
||||
ports:
|
||||
- "6379:6379"
|
||||
volumes:
|
||||
- ./data:/data
|
||||
environment:
|
||||
- TZ=Europe/Moscow
|
||||
healthcheck:
|
||||
test: [ "CMD", "redis-cli", "ping" ]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
Reference in New Issue
Block a user