-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
46 lines (43 loc) · 1.08 KB
/
docker-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
networks:
ai-services:
external: true
services:
app:
image: servicestack/ai-server
container_name: ai-server
networks:
- ai-services
ports:
- "${PORT:-5006}:8080"
env_file: ".env"
volumes:
- ./App_Data:/app/App_Data
depends_on:
app-migration:
condition: service_completed_successfully
app-migration:
image: servicestack/ai-server
container_name: ai-server-migration
env_file: ".env"
command: --AppTasks=migrate
depends_on:
- app-fix-permissions
volumes:
- ./App_Data:/app/App_Data
healthcheck:
test: ["CMD-SHELL", "[ -f /app/App_Data/migration_complete ]"]
interval: 10s
timeout: 5s
retries: 5
app-fix-permissions:
container_name: ai-server-fix-permissions
user: "root"
image: servicestack/ai-server
entrypoint: ["/bin/sh", "-c", "chown -R 1654:1654 ./App_Data"]
volumes:
- ./App_Data:/app/App_Data
healthcheck:
test: ["CMD-SHELL", "[ -f /app/App_Data/fixed_permissions ]"]
interval: 10s
timeout: 5s
retries: 5