forked from sleep1223/fast-soy-admin
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (47 loc) · 923 Bytes
/
docker-compose.yml
File metadata and controls
52 lines (47 loc) · 923 Bytes
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
services:
nginx:
build:
context: .
dockerfile: deploy/web.Dockerfile
ports:
- "1880:80"
depends_on:
app:
condition: service_started
restart: always
networks:
- internal
app:
build:
context: .
dockerfile: deploy/app.Dockerfile
depends_on:
- redis
restart: always
networks:
- internal
redis:
image: redis:latest
networks:
- internal
volumes:
- redis_data:/data
# Optional: run with `docker compose --profile cron up -d`
# View logs: `docker compose --profile cron logs -f cron_reset`
cron_reset:
build:
context: .
dockerfile: deploy/app.Dockerfile
command: ["uv", "run", "cron_reset.py"]
depends_on:
- app
restart: unless-stopped
profiles:
- cron
networks:
- internal
volumes:
redis_data:
networks:
internal:
driver: bridge