-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (42 loc) · 920 Bytes
/
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
services:
frontend:
build: ./frontend/
command: npm run dev
env_file:
- path: './frontend/.env'
ports:
- "5173:5173"
depends_on:
- backend
# alembic revision --autogenerate -m "create account table"
backend:
build: ./backend/
env_file:
- path: './backend/.env'
ports:
- "8000:8000"
depends_on:
- db
- migrate
- insert_data
migrate:
image: forest-fire-gis-app-backend
command: alembic upgrade head
depends_on:
- db
insert_data:
image: forest-fire-gis-app-backend
command: python data.py
depends_on:
- db
db:
image: postgis/postgis:16-3.4-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
ports:
- "5436:5432"
environment:
- POSTGRES_PASSWORD=1234
- POSTGRES_DB=emberwatch
volumes:
postgres_data: