-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
66 lines (60 loc) · 1.35 KB
/
docker-compose.dev.yml
File metadata and controls
66 lines (60 loc) · 1.35 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
services:
server:
build:
context: .
dockerfile: docker/Dockerfile
environment:
- MOAR_DOMAIN=localhost
- ADMIN_PUBKEY=${ADMIN_PUBKEY}
- RUST_LOG=debug
- MANAGER_SECRET=${MANAGER_SECRET:-dev-manager-secret}
volumes:
- ./data:/app/data
- ./config:/app/config
- ./pages:/app/data/pages
- manager_status:/status:ro
restart: unless-stopped
networks:
- moar
admin:
image: node:20-alpine
working_dir: /app
command: sh -c "npm install && npm run dev"
environment:
- NODE_ENV=development
- WATCHPACK_POLLING=true
volumes:
- ./admin:/app
- admin_node_modules:/app/node_modules
- /app/.next
restart: unless-stopped
networks:
- moar
caddy:
image: caddy:2-alpine
ports:
- "8888:8888"
- "80:80"
volumes:
- ./docker/Caddyfile.dev:/etc/caddy/Caddyfile
restart: unless-stopped
networks:
- moar
manager:
build:
context: ./docker/manager
dockerfile: Dockerfile
environment:
- MANAGER_SECRET=${MANAGER_SECRET:-dev-manager-secret}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- .:/project:rw
- manager_status:/status:rw
restart: unless-stopped
networks:
- moar
volumes:
manager_status:
admin_node_modules:
networks:
moar: