-
Notifications
You must be signed in to change notification settings - Fork 104
Expand file tree
/
Copy pathpodman-compose.yml
More file actions
49 lines (45 loc) · 1.31 KB
/
podman-compose.yml
File metadata and controls
49 lines (45 loc) · 1.31 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
services:
server:
image: "docker.io/openwrt/asu:latest"
build:
context: .
dockerfile: Containerfile
restart: unless-stopped
command: uv run uvicorn --host 0.0.0.0 --reload --reload-include asu.toml asu.main:app
environment:
REDIS_URL: "redis://redis:6379/0"
volumes:
- ./asu.toml:/app/asu.toml:ro
- ./public/store:/public/store:ro
ports:
- "127.0.0.1:8000:8000"
depends_on:
- redis
worker:
image: "docker.io/openwrt/asu:latest"
build:
context: .
dockerfile: Containerfile
restart: unless-stopped
command: uv run rqworker --logging_level INFO
environment:
REDIS_URL: "redis://redis:6379/0"
volumes:
- ./asu.toml:/app/asu.toml:ro
- ./public:/public:rw
- ./podman.sock:/var/podman.sock:rw
depends_on:
- redis
redis:
image: "docker.io/redis/redis-stack-server"
restart: unless-stopped
volumes:
- ./redis-data:/data/:rw
# Optional: caching proxy for upstream package downloads.
# Enable with: podman-compose -f podman-compose.yml -f podman-compose.cache.yml up -d
# and set cache_url = "http://cache" in asu.toml.
networks:
# Isolated network for build containers. Has internet access but
# cannot reach Redis or other compose services.
asu-build:
external: true