-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
76 lines (71 loc) · 1.94 KB
/
docker-compose.yml
File metadata and controls
76 lines (71 loc) · 1.94 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
services:
spiceapi:
image: ${DOCKER_REGISTRY-}spiceapi
restart: always
build:
context: .
dockerfile: spiceapi/Dockerfile
environment:
DB_PASS: ajh4pDmG7QuzLZ9tH5sJn1KlA2I6eV3W8yBvXoNrPfTqYcRiSgE0wMxO7F1dU9
DB_HOST: db
DB_USER: postgres
DB_NAME: db
CRYPT_COST: "14"
ENABLE_FILES: "yes"
FILE_DIR: "/var/spicehub"
AVATAR_PATH: "/var/spicehub_avatars"
AUTHSEC: "none" #header for IP checks, or "none" for disable
PRODUCTION: "false" # change to true for production, disable swagger and debug points
ports:
- "8080:8080"
- "8081:8081"
- "8085:5150"
volumes:
- type: bind
source: ./spicehub_storage
target: /var/spicehub/
- type: bind
source: ./spicehub_avatars
target: /var/spicehub_avatars/
- type: bind
source: ./spicehub_init #Backend will preload databse with files inside this, ex. roles.json, users.json
target: /etc/spicehub/preload/
depends_on:
- db
networks:
- app-network
db:
image: postgres:15
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ajh4pDmG7QuzLZ9tH5sJn1KlA2I6eV3W8yBvXoNrPfTqYcRiSgE0wMxO7F1dU9
POSTGRES_DB: db
volumes:
- db-data:/var/lib/postgresql/data
networks:
- app-network
spicehub:
image: ${DOCKER_REGISTRY-}spicehub
restart: always
build:
context: .
dockerfile: spicehub/Dockerfile
environment:
BACKEND: http://localhost:8080 # Replace with proper url
ports:
- "80:3000"
depends_on:
- spiceapi
networks:
- app-network
volumes: # COMMENT OUT VOLUMES FOR RELEASE, SEE Dockerfile
- ./spicehub:/app
- /app/node_modules
- /app/.next
volumes:
db-data:
driver: local
networks:
app-network:
driver: bridge