-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
105 lines (94 loc) · 1.96 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
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
version: "3.9"
services:
frontend:
build:
context: .
dockerfile: Dockerfile.frontend
target: frontend-prod
ports:
- "3000:80"
devcontainer:
build:
context: .
dockerfile: Dockerfile.backend
args:
PYTHON_VERSION: ${PYTHON_VERSION:-3.11.6}
target: dev
stdin_open: true
tty: true
volumes:
- .:/workspaces/vespadb/
app:
build:
context: .
dockerfile: Dockerfile.backend
target: app
tty: true
ports:
- "8001:8000"
volumes:
- .:/workspaces/vespadb/
command: [ "serve", "--dev" ]
working_dir: /workspaces/vespadb/
environment:
- PYTHONPATH=/workspaces/vespadb
- debug=True
depends_on:
db:
condition: service_healthy
db:
image: postgis/postgis:latest
environment:
POSTGRES_DB: vespadb
POSTGRES_USER: vespauser
POSTGRES_PASSWORD: vespauserpassword
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U vespauser -d vespadb" ]
interval: 10s
timeout: 5s
retries: 5
pgadmin:
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: "[email protected]"
PGADMIN_DEFAULT_PASSWORD: "root"
ports:
- "5050:80"
depends_on:
db:
condition: service_healthy
redis:
image: "redis:alpine"
ports:
- "6379:6379"
celery_worker:
build:
context: .
dockerfile: Dockerfile.backend
command: celery-worker
volumes:
- .:/workspaces/vespadb/
environment:
- TZ=UTC
depends_on:
db:
condition: service_healthy
celery_beat:
build:
context: .
dockerfile: Dockerfile.backend
command: celery-beat
volumes:
- .:/workspaces/vespadb/
environment:
- TZ=UTC
depends_on:
db:
condition: service_healthy
volumes:
postgres_data:
networks:
default:
name: vespadb-network