-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
83 lines (79 loc) · 2.15 KB
/
Copy pathdocker-compose.yml
File metadata and controls
83 lines (79 loc) · 2.15 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
77
78
79
80
81
82
83
x-pnpm-config: &pnpm-config
environment:
- npm_config_store_dir=/tmp/pnpm-store
volumes:
node_modules:
pnpm-store:
services:
core:
<<: *pnpm-config
image: node:22
entrypoint: ['node', '/app/scripts/entrypoint.ts']
working_dir: /app
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:3000/api/auth/groups']
interval: 5s
timeout: 5s
retries: 10
start_period: 30s
ports:
- '3000:3000'
volumes:
- .:/app
- node_modules:/app/node_modules
- pnpm-store:/tmp/pnpm-store
environment:
- NODE_ENV=development
- PORT=3000
- TZ=Europe/Amsterdam
- TYPEORM_CONNECTION=sqlite
- TYPEORM_DATABASE=local.sqlite
- TYPEORM_SYNCHRONIZE=true
- TYPEORM_LOGGING=false
- CORS_ORIGINS=http://localhost:3000,http://localhost:8081,http://localhost:8080
- COOKIE_SECRET=dev-secret
- SESSION_SECRET=dev-secret
- LOG_LEVEL=info
- LOG_AUDIO_BEATS=true
- OIDC_PROVIDER=KEYCLOAK
- ROLE_ADMIN=dev-admin
- ROLE_BOARD=dev-board
- ROLE_KEY_HOLDER=dev-key-holder
- ROLE_BAC=dev-bac
- ROLE_AVICO=dev-avico
command: ['pnpm', '--filter', '@gewis/aurora-core', 'run', 'dev']
client:
<<: *pnpm-config
image: node:22
entrypoint: ['node', '/app/scripts/entrypoint.ts']
working_dir: /app
ports:
- '8081:8081'
volumes:
- .:/app
- node_modules:/app/node_modules
- pnpm-store:/tmp/pnpm-store
depends_on:
core:
condition: service_healthy
environment:
- VITE_CORE_URL=http://core:3000
command: ['pnpm', '--filter', '@gewis/aurora-client', 'run', 'dev']
backoffice:
<<: *pnpm-config
image: node:22
entrypoint: ['node', '/app/scripts/entrypoint.ts']
working_dir: /app
ports:
- '8080:8080'
volumes:
- .:/app
- node_modules:/app/node_modules
- pnpm-store:/tmp/pnpm-store
depends_on:
core:
condition: service_healthy
environment:
- VITE_CORE_URL=http://core:3000
- VITE_NODE_ENV=development
command: ['pnpm', '--filter', '@gewis/aurora-backoffice', 'run', 'dev']