-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
91 lines (89 loc) · 1.89 KB
/
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
volumes:
postgres-volume:
site-packages:
services:
engine:
image: "${REGISTRY-}flouai/flou:latest"
depends_on:
- db
- cache
restart: on-failure
command: ["flou", "run", "engine"]
volumes:
- .:/code/app
- site-packages:/usr/local/lib/python3.11/site-packages
env_file:
- "${RESOURCES_DIR-docker}/.env.docker"
- path: .env
required: false
healthcheck:
test: celery -A flou.executor.celery.app status || exit 1
interval: 1s
timeout: 10s
retries: 10
api:
image: "${REGISTRY-}flouai/flou:latest"
environment:
- PORT=8000
ports:
- "8000:8000"
depends_on:
db:
condition: service_started
cache:
condition: service_started
engine:
condition: service_healthy
restart: on-failure
volumes:
- .:/code/app
- site-packages:/usr/local/lib/python3.11/site-packages
env_file:
- "${RESOURCES_DIR-docker}/.env.docker"
- path: .env
required: false
studio:
image: "${REGISTRY-}flouai/studio:latest"
# env_file: studio/.env.docker
environment:
- PORT=8001
ports:
- "8001:8001"
depends_on:
- api
- db
- cache
- engine
restart: on-failure
db:
image: postgres
ports:
- "54320:5432"
expose:
- "5432"
volumes:
- type: volume
source: postgres-volume
target: /var/lib/postgresql/data
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
networks:
default:
aliases:
- db
cache:
image: redis:6.2-alpine
restart: on-failure
expose:
- '6379'
ports:
- '6379:6379'
environment:
- ALLOW_EMPTY_PASSWORD=yes
docs:
image: "${REGISTRY-}flouai/docs:latest"
restart: on-failure
ports:
- "8002:8002"