-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (52 loc) · 1.44 KB
/
docker-compose.yml
File metadata and controls
66 lines (52 loc) · 1.44 KB
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
services:
postgres:
image: postgres:${AYON_STACK_POSTGRES_TAG:-15}
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ayon"]
interval: 5s
timeout: 5s
retries: 5
expose: [5432]
volumes:
# comment out the following line on Windows
- "/etc/localtime:/etc/localtime:ro"
- "db:/var/lib/postgresql/data"
environment:
- "POSTGRES_USER=${POSTGRES_USER:-ayon}"
- "POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-ayon}"
- "POSTGRES_DB=${POSTGRES_DB:-ayon}"
redis:
image: redis:alpine
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
interval: 5s
timeout: 5s
retries: 5
expose: [6379]
server:
image: ynput/ayon:${AYON_STACK_SERVER_TAG:-latest}
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000/api/info"]
interval: 10s
timeout: 2s
retries: 3
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_started
expose: [5000]
ports:
- ${AYON_STACK_SERVER_PORT:-5000}:5000
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"
volumes:
db: {}