forked from ynput/ayon-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
58 lines (51 loc) · 1.28 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
47
48
49
50
51
52
53
54
55
56
57
version: "3.7"
services:
postgres:
image: postgres:15
expose:
- 5432
environment:
- "POSTGRES_USER=ayon"
- "POSTGRES_PASSWORD=ayon"
- "POSTGRES_DB=ayon"
volumes:
- "/etc/localtime:/etc/localtime:ro"
- "db:/var/lib/postgresql/data"
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ayon"]
interval: 5s
timeout: 5s
retries: 5
redis:
image: redis:alpine
expose:
- 6379
restart: unless-stopped
# TODO: This check floods logs (too many writes)
# healthcheck:
# test: ["CMD", "redis-cli", "--raw", "incr", "ping"]
# interval: 5s
# timeout: 5s
# retries: 5
server:
image: ynput/ayon:dev
restart: unless-stopped
volumes:
- "./addons:/addons"
- "./storage:/storage"
# comment out the following line on Windows
- "/etc/localtime:/etc/localtime:ro"
# uncomment the following line if you need to work on the backend code
# - "./backend:/backend"
ports:
- "5000:5000"
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_started
environment:
- "AYON_POSTGRES_URL=postgres://ayon:ayon@postgres/ayon"
volumes:
db: {}