-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.local-dev.yml
More file actions
76 lines (70 loc) · 1.52 KB
/
docker-compose.local-dev.yml
File metadata and controls
76 lines (70 loc) · 1.52 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
version: "3.8"
services:
backend:
container_name: atria-api-dev
build:
context: ./backend/atria
dockerfile: Dockerfile
ports:
- "5000:5000"
volumes:
- ./backend/atria:/app
env_file:
- ./backend/atria/.flaskenv
- .env.development
environment:
- SEED_DB=${SEED_DB:-true}
depends_on:
db:
condition: service_healthy
networks:
- default
frontend-vite:
container_name: atria-client-vite-dev
image: node:20-alpine
working_dir: /app
command: sh -c "npm install && npm run dev -- --host"
ports:
- "5173:5173"
volumes:
- ./frontend:/app
- /app/node_modules
environment:
- VITE_API_URL=http://localhost:5000/api
networks:
- default
depends_on:
- backend
db:
container_name: atria-db-dev
image: postgres:15-alpine
volumes:
- postgres_data_dev:/var/lib/postgresql/data
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 5s
timeout: 5s
retries: 5
networks:
- default
dicebear-api:
container_name: atria-avatars-dev
image: dicebear/api:3
ports:
- "5001:3000"
tmpfs:
- /run
- /tmp
networks:
- default
restart: unless-stopped
volumes:
postgres_data_dev:
networks:
default: