-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.dev.yaml
More file actions
66 lines (61 loc) · 1.44 KB
/
Copy pathcompose.dev.yaml
File metadata and controls
66 lines (61 loc) · 1.44 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
services:
postgres:
ports:
- "5432:5432"
depends_on:
- pgadmin
pgadmin:
image: dpage/pgadmin4
restart: unless-stopped
ports:
- "8888:80"
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD}
volumes:
- pgadmin-data:/var/lib/pgadmin
networks:
- cve-net
backend:
volumes:
- ./backend/alembic:/app/alembic
ports:
- "8080:8080"
command: uvicorn app.main:app --host 0.0.0.0 --port 8080 --reload --forwarded-allow-ips=*
develop:
watch:
- action: sync
path: ./backend/app
target: /app/app
- action: rebuild
path: ./backend/requirements.txt
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
target: dev
environment:
INTERNAL_API_URL: http://backend:8080
ports:
- "3000:3000"
develop:
watch:
- action: sync
path: ./frontend/app
target: /app/app
- action: sync
path: ./frontend/components
target: /app/components
- action: sync
path: ./frontend/lib
target: /app/lib
- action: sync
path: ./frontend/public
target: /app/public
- action: rebuild
path: ./frontend/package.json
nginx:
volumes:
- ./nginx/conf.dev.d:/etc/nginx/conf.d:ro
volumes:
pgadmin-data: