forked from p2p-lanes/EdgeOS_API
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
95 lines (88 loc) · 1.92 KB
/
Copy pathdocker-compose.yml
File metadata and controls
95 lines (88 loc) · 1.92 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
version: '3.8'
services:
nocodb:
depends_on:
postgres:
condition: service_healthy
environment:
NC_DB: "pg://postgres:${DB_PORT}?u=${DB_USERNAME}&p=${DB_PASSWORD}&d=${NOCO_DB_NAME}"
image: "nocodb/nocodb:latest"
ports:
- "8080:8080"
restart: always
volumes:
- "nc_data:/usr/app/data"
env_file:
- .env
api:
build: .
ports:
- "8000:8000"
env_file:
- .env
volumes:
- .:/usr/src/app
depends_on:
postgres:
condition: service_healthy
command: "uvicorn main:app --host 0.0.0.0 --port 8000 --reload"
send_scheduled_emails:
build: .
env_file:
- .env
volumes:
- .:/usr/src/app
depends_on:
postgres:
condition: service_healthy
command: "python app/processes/send_scheduled_emails.py"
restart: always
send_reminder_emails:
build: .
env_file:
- .env
volumes:
- .:/usr/src/app
depends_on:
postgres:
condition: service_healthy
command: "python app/processes/send_reminder_emails.py"
restart: always
auto_approval:
build: .
env_file:
- .env
volumes:
- .:/usr/src/app
depends_on:
postgres:
condition: service_healthy
command: "python app/processes/auto_approval.py"
restart: always
postgres:
environment:
POSTGRES_DB: ${DB_NAME}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_PASSWORD: ${DB_PASSWORD}
healthcheck:
interval: 10s
retries: 10
test: "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"
timeout: 2s
image: postgres:16
restart: always
ports:
- "5432:5432"
volumes:
- "db_data:/var/lib/postgresql/data"
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
test:
build: .
environment:
ENVIRONMENT: test
command: pytest tests/ -v
profiles:
- test
volumes:
db_data: {}
nc_data: {}