-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
81 lines (75 loc) · 1.67 KB
/
docker-compose.yaml
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
version: "3.9"
services:
database:
image: postgres:16
container_name: database
volumes:
- ./postgresql.conf:/etc/postgresql.conf
- ./postgres-data:/var/lib/postgresql/data
env_file:
- .env-prod
ports:
- "5431:5431"
expose:
- 5431
command: -p 5431
healthcheck:
test: [ "CMD-SHELL", "pg_isready", "-U", "postgres" ]
interval: 10s
timeout: 5s
retries: 5
meili:
image: getmeili/meilisearch:v1.7
container_name: meili
volumes:
- ./data.ms:/data.ms
env_file:
- .env-prod
meilisync:
platform: linux/x86_64
image: long2ice/meilisync
volumes:
- ./meilisync_config.yml:/meilisync/config.yml
depends_on:
- database
- meili
backend:
build:
context: ./backend
container_name: backend
env_file:
- .env-prod
command: bash -c "alembic upgrade head && gunicorn src.main:app --workers 3 --worker-class uvicorn.workers.UvicornWorker --bind=0.0.0.0:8000"
depends_on:
- database
- meili
ports:
- "8000:8000"
volumes:
- media_files:/backend/files
admin_frontend:
build:
context: ./admin
container_name: admin_frontend
command: bash -c "npm run start"
environment:
- PORT=3010
ports:
- "3010:3010"
public_frontend:
build:
context: ./public
container_name: public_frontend
command: bash -c "npm run start"
environment:
- PORT=3000
ports:
- "3000:3000"
volumes:
media_files:
driver: local
driver_opts:
type: "none"
o: "bind"
# TODO: Change to normal dir
device: "/home/damego/stoboi/backend/files"