-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (37 loc) · 1.21 KB
/
Copy pathdocker-compose.yml
File metadata and controls
38 lines (37 loc) · 1.21 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
services:
ALAS:
container_name: "alas"
image: "alas:py314"
build:
context: .
dockerfile: ./deploy/docker/Dockerfile
# dockerfile: ./deploy/docker/Dockerfile.cn
args:
UV_INDEX_URL: ${UV_INDEX_URL:-https://pypi.org/simple}
UV_EXTRA_INDEX_URL: ${UV_EXTRA_INDEX_URL:-}
network_mode: host
restart: unless-stopped
init: true
working_dir: /app/AzurLaneAutoScript
environment:
TZ: ${TZ:-Asia/Shanghai}
PYTHONDONTWRITEBYTECODE: "1"
PYTHONUNBUFFERED: "1"
volumes:
- '.:/app/AzurLaneAutoScript:rw'
- 'alas-venv:/app/AzurLaneAutoScript/.venv'
# - '../MAA:/app/MAA:rw'
- '/etc/localtime:/etc/localtime:ro'
command: [".venv/bin/python", "gui.py"]
healthcheck:
test:
[
"CMD-SHELL",
".venv/bin/python -c \"import socket; s=socket.create_connection(('127.0.0.1', 22267), 3); s.close()\"",
]
interval: 30s
timeout: 5s
retries: 6
start_period: 90s
volumes:
alas-venv: