-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.example.yaml
63 lines (61 loc) · 1.8 KB
/
docker-compose.example.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
services:
hive-claim-manager:
build:
context: ../
args:
- REACT_APP_API_URL=http://localhost/api
- DEVELOPMENT=true
develop:
watch:
- action: sync
path: ../src
target: /hive-claim-manager/src
ignore:
- node_modules/
- action: sync
path: ../api
target: /hive-claim-manager/api
container_name: hive-claim-manager
networks:
- hive-claim-manager
dns: # Optional, add only if the container failed to resolve DNS
- 8.8.8.8
ports:
- "3000:3000"
- "5000:5000"
volumes:
- <path to kubeconfig>:/root/.kube/config
- <path to aws credentials>:/root/.aws/credentials
- ../development/users.yaml:/users.yaml
- <path to DB file>:/db.sqlite # optional. Local file must exist; defaults to /tmp/db.sqlite
environment:
- HIVE_CLAIM_FLASK_APP_USERS_FILE=/users.yaml
- HIVE_CLAIM_FLASK_APP_SECRET_KEY=localdevelopment
- HIVE_CLAIM_FLASK_APP_NAMESPACE=<hive namespace>
- HIVE_CLAIM_FLASK_APP_DEBUG=true
- HIVE_CLAIM_FLASK_APP_RELOAD=true
- AWS_SHARED_CREDENTIALS_FILE=/root/.aws/credentials
- KUBECONFIG=/root/.kube/config
- HIVE_CLAIM_MANAGER_SUPERUSER_NAME=admin
- DEVELOPMENT=true
- HIVE_CLAIM_MANAGER_SQLALCHEMY_ECHO=true # optional; echo database actions to console
- HIVE_CLAIM_FLASK_APP_DB_PATH=sqlite:////db.sqlite
depends_on:
- nginx
nginx:
image: lscr.io/linuxserver/nginx:latest
container_name: nginx
networks:
- hive-claim-manager
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
volumes:
- ../development/config:/config
ports:
- 80:80
restart: unless-stopped
networks:
hive-claim-manager:
external: true