This repository has been archived by the owner on Mar 21, 2022. It is now read-only.
generated from mazgi/template.containerized-provisioning-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
77 lines (76 loc) · 1.98 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
72
73
74
75
76
77
x-service-provisioning-base: &provisioning-base
build:
args:
GID: ${GID:-0}
UID: ${UID:-0}
context: Dockerfile.d/provisioning
command:
- zsh
- -ic
- |
/project/scripts/provisioning.init-with-google.sh
environment:
- CLOUDSDK_CORE_PROJECT
- CURRENT_ENV_NAME
- GOOGLE_APPLICATION_CREDENTIALS=/project/config/${CURRENT_ENV_NAME}/credentials/google-cloud-keyfile.json
- PROJECT_UNIQUE_ID
- TF_DATA_DIR=/tmp/provisioning/.terraform.d/
- TF_VAR_gcp_project_id=${CLOUDSDK_CORE_PROJECT}
- TF_VAR_project_unique_id=${PROJECT_UNIQUE_ID}
user: "${UID:-0}:${GID:-0}"
volumes:
- provisioning-home-developer:/home/developer
- provisioning-home-root:/root # for macOS
- /var/run/docker.sock:/var/run/docker.sock
- ./Dockerfile.d:/project/Dockerfile.d
- ./config:/project/config
- ./provisioning:/project/workspace
- ./scripts:/project/scripts
- ./tmp/provisioning:/tmp/provisioning
working_dir: /project/workspace
services:
provisioning:
<<: *provisioning-base
website:
build:
context: Dockerfile.d/website.development
args:
UID: ${UID:-0}
GID: ${GID:-0}
command: >
hugo server
--baseURL http://$BIND_IP_ADDR:1313
--bind 0.0.0.0
--buildDrafts
environment:
BIND_IP_ADDR: ${BIND_IP_ADDR:-127.0.0.1}
ports:
- "${BIND_IP_ADDR:-127.0.0.1}:1313:1313"
user: "${UID:-0}:${GID:-0}"
volumes:
- ./website:/project/website
working_dir: /project/website
vscode: # for prettier
build:
args:
GID: ${GID:-0}
UID: ${UID:-0}
context: Dockerfile.d/vscode
command:
- bash
- -c
- |
npm-check-updates --upgrade
npm install
npm audit fix
sort-package-json
user: ${UID:-0}:${GID:-0}
volumes:
- .:/workspace
working_dir: /workspace
version: "3.8"
volumes:
provisioning-home-developer:
driver: local
provisioning-home-root:
driver: local