forked from openwrt/asu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
podman-compose.yml
48 lines (44 loc) · 1022 Bytes
/
podman-compose.yml
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
version: "3"
services:
server:
image: "asu:latest"
build:
context: ./
dockerfile: Containerfile
restart: always
environment:
- REDIS_URL=redis://redis/
ports:
- "127.0.0.1:8000:8000"
depends_on:
- redis
worker:
image: "asu:latest"
build:
context: ./
dockerfile: Containerfile
restart: always
command: rqworker --with-scheduler
environment:
- CONTAINER_HOST=unix:///run/user/1000/podman/podman.sock
- REDIS_URL=redis://redis/
volumes:
- "./public:/app/public:rw,rshared"
- "/run/user/1000/podman/podman.sock:/run/user/1000/podman/podman.sock:rw"
depends_on:
- redis
redis:
image: "docker.io/redis/redis-stack-server"
restart: always
volumes:
- "./redis:/data/:rw"
webserver:
image: caddy
volumes:
- "./misc/Caddyfile:/etc/caddy/Caddyfile"
- "./public/:/site/:ro,rshared"
ports:
- "80:80"
restart: always
depends_on:
- server