-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
83 lines (83 loc) · 1.84 KB
/
compose.yml
File metadata and controls
83 lines (83 loc) · 1.84 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
services:
www:
build:
context: ../www
dockerfile: Dockerfile
ports:
- 80:80
restart: always
develop:
watch:
- action: rebuild
path: ../www/index.html
- action: rebuild
path: ../www/index.css
- action: rebuild
path: ../www/index.js
auth:
build: ../auth
ports:
- 3000:3000
environment:
ALLOWED_ORIGINS: "http://localhost"
JWT_SECRET: "my-super-secret-key"
restart: always
volumes:
- ./github-apps.yaml:/etc/config/github-apps.yaml
wss:
build:
context: ../wss
dockerfile: Dockerfile.dev
ports:
- 8081:8081
environment:
VM_USER: user
ALLOWED_ORIGINS: "http://localhost"
JWT_SECRET: "my-super-secret-key"
restart: always
volumes:
- ./ssh.key:/etc/keys/cka
- ../wss:/usr/src/app
- /usr/src/app/node_modules
develop:
watch:
- action: sync
path: ../wss
target: /usr/src/app
ignore:
- node_modules/
- .git/
- .gitignore
- README.md
- Dockerfile*
- action: rebuild
path: package.json
instances:
build:
context: ../instances
dockerfile: Dockerfile
environment:
EXOSCALE_API_KEY: ...
EXOSCALE_API_SECRET: ...
DATABASE_DSN: "postgres://postgres:postgres@postgres:5432/terminal?sslmode=disable"
restart: always
volumes:
- ./vms.yaml:/etc/config/vms.yaml
develop:
watch:
- action: rebuild
path: ../instances
nats:
image: nats:2.11.2-alpine
ports:
- 4222:4222
restart: always
postgres:
image: postgres:17.4-alpine3.21
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: terminal
ports:
- 5432:5432
restart: always