-
Notifications
You must be signed in to change notification settings - Fork 2
/
compose.package.yaml
83 lines (74 loc) · 2 KB
/
compose.package.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
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
# Language: Compose YAML, Project: DatAasee, License: MIT, Author: Christian Himpe
name: "dataasee"
networks:
"internal":
services:
## Database ####################################################################
"database":
build:
args:
BUILDKIT_INLINE_CACHE: 1
IMGREPO: ${ORIGIN:-}
VERSION: $DB_VERSION
DB_NAME: $DB_NAME
context: "."
dockerfile: "container/Dockerfile.db"
tags:
- "$REGISTRY/$DL_REPO/database:$DL_VERSION"
target: "release"
image: "$REGISTRY/$DL_REPO/database:$DL_VERSION"
init: true
networks:
- "internal"
restart: "unless-stopped"
stop_grace_period: "90s"
## Backend #####################################################################
"backend":
build:
args:
BUILDKIT_INLINE_CACHE: 1
IMGREPO: ${ORIGIN:-}
VERSION: $BE_VERSION
DL_NAME: $DL_NAME
DL_VERSION: $DL_VERSION
DL_PORT: "8343"
DL_PATH: $DL_PATH
DB_TYPE: "ArcadeDB"
DB_HOST: "database"
DB_PORT: "2480"
DB_NAME: $DB_NAME
context: "."
dockerfile: "container/Dockerfile.be"
tags:
- "$REGISTRY/$DL_REPO/backend:$DL_VERSION"
target: "release"
depends_on:
- "database"
image: "$REGISTRY/$DL_REPO/backend:$DL_VERSION"
init: true
networks:
- "internal"
ports:
- "${DL_PORT-8343}:8343"
restart: "unless-stopped"
## Frontend ####################################################################
"frontend":
build:
args:
BUILDKIT_INLINE_CACHE: 1
IMGREPO: ${ORIGIN:-}
VERSION: $FE_VERSION
DL_PATH: $DL_PATH
context: "."
dockerfile: "container/Dockerfile.fe"
no_cache: true
tags:
- "$REGISTRY/$DL_REPO/frontend:$DL_VERSION"
target: "release"
image: "$REGISTRY/$DL_REPO/frontend:$DL_VERSION"
init: true
networks:
- "internal"
ports:
- "${FE_PORT-8000}:3000"
restart: "unless-stopped"