Repository navigation
Expand file tree
/
Copy pathcompose.dev.yml
More file actions
69 lines (66 loc) · 1.51 KB
/
Copy pathcompose.dev.yml
File metadata and controls
69 lines (66 loc) · 1.51 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
services:
api:
build:
context: .
dockerfile: Dockerfile.dev
target: api
working_dir: /app
command: ['bun', '--hot', 'src/server/api.ts']
environment:
DATABASE_URL: /app/data/sqlite.db
OLCRTC_DATA_DIR: /app/data/instances
OLCRTC_GIT_DIR: /app/olcrtc
OLCRTC_BUILD_DIR: /app/olcrtc
OLCRTC_GIT_REMOTE_URL: https://github.com/openlibrecommunity/olcrtc
MAGE_CMD: mage
BODY_SIZE_LIMIT: Infinity
API_HOST: 0.0.0.0
API_PORT: 3001
HOST: 0.0.0.0
VK_BOT_URL: http://vk-bot:3002
ports:
- '3001:3001'
userns_mode: keep-id
volumes:
- .:/app:z
- ./.gopath:/go:z
web:
build:
context: .
dockerfile: Dockerfile.dev
target: base
working_dir: /app
command: ['bun', '--bun', 'vite', 'dev', '--host', '0.0.0.0', '--port', '5173']
depends_on:
- api
environment:
HOST: 0.0.0.0
PORT: 5173
VITE_HOST: 0.0.0.0
VITE_USE_POLLING: 'false'
API_BACKEND_URL: http://api:3001
BODY_SIZE_LIMIT: Infinity
ports:
- '5173:5173'
userns_mode: keep-id
volumes:
- .:/app:z
vk-bot:
build:
context: .
dockerfile: Dockerfile.dev
target: vk-bot
working_dir: /app
command: ['bun', 'src/vk-bot/index.ts']
depends_on:
- api
env_file:
- .env
environment:
API_BACKEND_URL: http://api:3001
BOT_HTTP_PORT: '3002'
userns_mode: keep-id
volumes:
- .:/app:z
volumes:
appdata: