Repository navigation
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
60 lines (55 loc) · 1.7 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
60 lines (55 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: proxypoolmaster-dev
x-dev-build: &dev-build
image: proxypoolmaster:dev-local
build:
context: .
dockerfile: Dockerfile
args:
APP_RELEASE_VERSION: ${APP_RELEASE_VERSION:-}
APP_GIT_SHA: ${APP_GIT_SHA:-}
APP_IMAGE_TAG: ${APP_IMAGE_TAG:-}
x-dev-runtime: &dev-runtime
env_file:
- .env
volumes:
- app_logs_dev:/app/logs
- ./data/custom_collectors:/app/data/custom_collectors
- ./data/config:/app/data/config
services:
app:
<<: [*dev-build, *dev-runtime]
container_name: proxypool_app_dev
ports:
- "18080:8080"
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
REDIS_HOST: ${DEV_REDIS_HOST:-host.docker.internal}
REDIS_PORT: ${DEV_REDIS_PORT:-6379}
COLLECTOR_WORKER_ENABLED: ${APP_COLLECTOR_WORKER_ENABLED:-0}
COLLECTOR_WORKER_ID: ${COLLECTOR_WORKER_ID:-collector-worker-dev}
CONFIG_FILE: /app/data/config/config.json
APP_IMAGE_TAG: ${APP_IMAGE_TAG:-}
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://localhost:8080/health > /dev/null"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
collector-worker:
<<: *dev-runtime
image: proxypoolmaster:dev-local
container_name: proxypool_collector_worker_dev
command: ["worker"]
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
REDIS_HOST: ${DEV_REDIS_HOST:-host.docker.internal}
REDIS_PORT: ${DEV_REDIS_PORT:-6379}
COLLECTOR_WORKER_ID: ${COLLECTOR_WORKER_ID:-collector-worker-dev}
CONFIG_FILE: /app/data/config/config.json
APP_IMAGE_TAG: ${APP_IMAGE_TAG:-}
restart: on-failure
volumes:
app_logs_dev: