-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
47 lines (44 loc) · 1 KB
/
compose.yaml
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
version: '3.8'
services:
redis:
image: "redis:latest"
container_name: "frate-redis"
ports:
- "6379:6379"
volumes:
- redis-data:/data
templates-server:
build:
context: ${TEMPLATES_SERVER_PATH} # Use an environment variable for the path
image: "frate-templates"
ports:
- "8080:8080"
command: "/app/frate-template"
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
depends_on:
- redis
develop:
watch:
- path: ${TEMPLATES_SERVER_PATH}/main.go
action: rebuild
packages-server:
build:
context: ${PACKAGES_SERVER_PATH} # Use an environment variable for the path
image: "frate-packages"
ports:
- "8000:8000"
command: "/app/package-server"
environment:
- REDIS_HOST=frate-redis
- REDIS_PORT=6379
depends_on:
- redis
develop:
watch:
- path: ${PACKAGES_SERVER_PATH}/main.go
action: rebuild
volumes:
redis-data:
driver: local