-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (44 loc) · 926 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
48 lines (44 loc) · 926 Bytes
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
services:
postgres:
image: ankane/pgvector:latest
restart: always
environment:
POSTGRES_USER: codechain
POSTGRES_PASSWORD: codechain
POSTGRES_DB: codechain
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- "12010:5432"
app:
build: ./backend
restart: always
env_file: .env
depends_on:
- postgres
ports:
- "12001:8000"
volumes:
- workspaces:/data/workspaces
extra_hosts:
- "host.docker.internal:host-gateway"
nginx:
build: ./nginx
restart: always
ports:
- "12000:80"
depends_on:
app:
condition: service_started
frontend-build:
condition: service_completed_successfully
volumes:
- frontend_dist:/usr/share/nginx/html:ro
frontend-build:
build: ./frontend
volumes:
- frontend_dist:/app/dist
volumes:
pgdata:
frontend_dist:
workspaces: