-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.yaml
More file actions
108 lines (105 loc) · 2.56 KB
/
compose.yaml
File metadata and controls
108 lines (105 loc) · 2.56 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
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
name: archetype
services:
meilisearch:
image: getmeili/meilisearch:latest
environment:
- MEILI_ENV=development
# No MEILI_MASTER_KEY in development: requests without a key are allowed.
volumes:
- meilisearch_data:/meili_data
ports:
- "7700:7700"
postgres:
image: postgres:17
volumes:
- postgres:/var/lib/postgresql/data
ports:
- "5432:5432"
environment:
- POSTGRES_HOST=localhost
- POSTGRES_PORT=5432
- POSTGRES_DB=local
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d local"]
interval: 5s
timeout: 5s
retries: 20
pg-admin:
image: dpage/pgadmin4:latest
environment:
PGADMIN_DEFAULT_EMAIL: admin@example.com
PGADMIN_DEFAULT_PASSWORD: admin
ports:
- "5050:80"
depends_on:
- postgres
volumes:
- pgadmin-data:/var/lib/pgadmin
# ftp:
# image: fauria/vsftpd
# restart: always
# environment:
# - FTP_USER=user
# - FTP_PASS=password
# - PASV_ADDRESS=127.0.0.1 # Change this if needed
# - PASV_MIN_PORT=21100
# - PASV_MAX_PORT=21110
# ports:
# - "21:21"
# - "21100-21110:21100-21110"
# volumes:
# - ./storage/media:/home/vsftpd/user
api:
image: ghcr.io/archetype-pal/backend:latest
build: .
environment:
DJANGO_SETTINGS_MODULE: config.settings
MEILISEARCH_URL: http://meilisearch:7700
command: python manage.py runserver 0.0.0.0:80 --nostatic
env_file: ${API_ENV_FILE:-config/.env}
ports:
- "8000:80"
volumes:
- .:/app
depends_on:
postgres:
condition: service_started
meilisearch:
condition: service_started
redis:
condition: service_healthy
image_server:
image: daschswiss/sipi
ports:
- 1024:1024
volumes:
- ./storage/media:/sipi/images
redis:
image: redis:7.4-alpine
ports:
- "6379:6379"
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
interval: 5s
timeout: 30s
retries: 50
celery:
image: ghcr.io/archetype-pal/backend:latest
command: celery -A config worker -l info
volumes:
- .:/app
depends_on:
- redis
- postgres
- meilisearch
env_file: ${API_ENV_FILE:-config/.env}
environment:
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
- MEILISEARCH_URL=http://meilisearch:7700
volumes:
postgres:
meilisearch_data:
pgadmin-data: