-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.dev.yaml
More file actions
71 lines (68 loc) · 1.65 KB
/
compose.dev.yaml
File metadata and controls
71 lines (68 loc) · 1.65 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
services:
app:
build:
context: .
dockerfile: Dockerfile.dev
env_file:
- .env
ports:
- "${PORT}:3000"
environment:
- NODE_ENV=development
- COOKIE_SECURE=${COOKIE_SECURE}
- JWT_SECRET=${JWT_SECRET}
- MEILI_MASTER_KEY=${MEILI_MASTER_KEY}
- DATABASE_PATH=${DATABASE_PATH}
- FILES_PATH=${FILES_PATH}
- MEILISEARCH_HOST=${MEILISEARCH_HOST}
volumes:
- ./data/db:/app/data/db
- ./data/files:/app/data/files
# Bind mount the source code for development
- ./app:/app/app
- ./server:/app/server
- ./public:/app/public
- ./nuxt.config.ts:/app/nuxt.config.ts
- ./tsconfig.json:/app/tsconfig.json
- ./drizzle.config.ts:/app/drizzle.config.ts
depends_on:
meilisearch:
condition: service_healthy
restart: unless-stopped
networks:
- arctic
setup-auth:
build:
context: .
dockerfile: Dockerfile.dev
env_file:
- .env
profiles: [tools]
environment:
- DATABASE_PATH=${DATABASE_PATH}
volumes:
- ./data/db:/app/data/db
command: node /app/scripts/setup-auth.mjs
networks:
- arctic
meilisearch:
env_file:
- .env
image: getmeili/meilisearch:v1.38.2
environment:
- MEILI_NO_ANALYTICS=true
- MEILI_ENV=development
- MEILI_MASTER_KEY=${MEILI_MASTER_KEY}
volumes:
- ./data/meili:/meili_data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:7700/health"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
networks:
- arctic
networks:
arctic:
driver: bridge