Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit f98ed931 authored by Digital Factory's avatar Digital Factory
Browse files

NTT Digital factory version v0.4.4 export

parent c374533a
No related branches found
No related tags found
1 merge request!1Ntt
Pipeline #53612 failed
...@@ -160,3 +160,38 @@ cython_debug/ ...@@ -160,3 +160,38 @@ cython_debug/
# option (not recommended) you can uncomment the following to ignore the entire idea folder. # option (not recommended) you can uncomment the following to ignore the entire idea folder.
.idea/ .idea/
##
# Local .terraform directories
**/.terraform/*
# .tfstate files
*.tfstate
*.tfstate.*
# Crash log files
crash.log
crash.*.log
# Exclude all .tfvars files, which are likely to contain sensitive data, such as
# password, private keys, and other secrets. These should not be part of version
# control as they are data points which are potentially sensitive and subject
# to change depending on the environment.
*.tfvars
*.tfvars.json
# Ignore override files as they are usually used to override resources locally and so
# are not checked in
override.tf
override.tf.json
*_override.tf
*_override.tf.json
# Include override files you do wish to add to version control using negated pattern
# !example_override.tf
# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan
# example: *tfplan*
# Ignore CLI configuration files
.terraformrc
terraform.rc
...@@ -2,9 +2,8 @@ ...@@ -2,9 +2,8 @@
## Quickstart ## Quickstart
```shell ```shell
$ docker compose -f docker-compose.backend.yml -f docker-compose.service.yml up -d --build netbox $ terraform init
$ docker compose -f docker-compose.backend.yml -f docker-compose.service.yml logs -f netbox $ terraform apply -var="deploy_service=true"
$ docker compose -f docker-compose.backend.yml -f docker-compose.service.yml ps
``` ```
And browse [http://localhost:8000](http://localhost:8000). And browse [http://localhost:8000](http://localhost:8000).
version: '3.4'
services:
redis:
image: redis:7-alpine
command:
- sh
- -c # this is to evaluate the $REDIS_PASSWORD from the env
- redis-server --appendonly yes --requirepass "$$REDIS_PASSWORD" # $$ is because of Docker
environment:
REDIS_PASSWORD: password
ports:
- 6379:6379
postgres:
image: postgres:15-alpine
environment:
POSTGRES_USER: username
POSTGRES_PASSWORD: password
POSTGRES_DB: netbox
ports:
- 5432:5432
adminer:
image: adminer
ports:
- 8080:8080
version: '3.4'
services:
netbox:
build: .
environment:
CORS_ORIGIN_ALLOW_ALL: True
DB_HOST: postgres
DB_NAME: postgres
DB_USER: username
DB_PASSWORD: password
REDIS_CACHE_DATABASE: 1
REDIS_CACHE_HOST: redis
REDIS_CACHE_PASSWORD: password
REDIS_CACHE_SSL: false
REDIS_DATABASE: 0
REDIS_HOST: redis
REDIS_PASSWORD: password
REDIS_SSL: false
SECRET_KEY: r8OwDznj!!dci#ParztZELKezarlkjjlazjkhat9ghmRfdu1Ysxm0AiPeDCQhKE+N_rClfWNj
SKIP_SUPERUSER: false
SUPERUSER_API_TOKEN: 0123456789abcdef0123456789abcdef01234567
SUPERUSER_EMAIL: username@global.ntt
SUPERUSER_NAME: username
SUPERUSER_PASSWORD: password
ports:
- 8000:8080
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment