-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
71 lines (66 loc) · 1.55 KB
/
docker-compose.yml
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
version: "3.2"
services:
hugo:
build: ./app
volumes:
- ./app:/app
ports:
- "1313:1313"
depends_on:
- metascraper
environment:
AWS_ACCESS_KEY_ID: "${AWS_ACCESS_KEY_ID}"
AWS_SECRET_ACCESS_KEY: "${AWS_SECRET_ACCESS_KEY}"
HUGO_ENV: "${HUGO_ENV}"
HUGO_CACHEDIR: "/app/resources/_cache"
metascraper:
build: ./metascraper
volumes:
- ./metascraper:/metascraper
- /metascraper/node_modules
command: ["start"]
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost:8080
interval: 5s
timeout: 3s
ports:
- "8080:8080"
environment:
PORT: 8080
test:
profiles:
- utilities
build: ./test
volumes:
- ./test:/test
- /test/node_modules
depends_on:
- hugo
environment:
APP_HOST: http://hugo:1313
terraform:
profiles:
- utilities
build: ./terraform
volumes:
- ./terraform:/terraform
environment:
AWS_ACCESS_KEY_ID: "${AWS_ACCESS_KEY_ID}"
AWS_SECRET_ACCESS_KEY: "${AWS_SECRET_ACCESS_KEY}"
TF_VAR_friends_and_family_passcode: "${FRIENDS_AND_FAMILY_PASSCODE}"
tfsec:
profiles:
- utilities
image: aquasec/tfsec:v1.28.4
volumes:
- ./terraform:/terraform
sops:
profiles:
- utilities
image: ghcr.io/getsops/sops:v3.8.1-alpine
volumes:
- ./app:/app
environment:
AWS_ACCESS_KEY_ID: "${AWS_ACCESS_KEY_ID}"
AWS_SECRET_ACCESS_KEY: "${AWS_SECRET_ACCESS_KEY}"
SOPS_KMS_ARN: "${SOPS_KMS_ARN}"