Merge pull request #6 from lblod/chore/docker-compose-config-updates

Docker compose config updates
This commit is contained in:
Boris De Vloed
2021-06-24 15:34:16 +02:00
committed by GitHub
5 changed files with 58 additions and 21 deletions

1
.env.example Normal file
View File

@@ -0,0 +1 @@
COMPOSE_FILE=docker-compose.yml:docker-compose.dev.yml

1
.gitignore vendored
View File

@@ -11,6 +11,7 @@ docker-compose.override.yml
/data/elasticsearch/**
/tmp
.DS_STORE
.env
/config/migrations/private-data/*

View File

@@ -1,6 +1,29 @@
version: '3.4'
services:
web:
identifier:
ports:
- "80:80"
restart: "no"
dispatcher:
restart: "no"
triplestore:
restart: "no"
db:
restart: "no"
migrations:
restart: "no"
resource:
restart: "no"
cache:
restart: "no"
uri-info:
restart: "no"
resource-labels-cache:
restart: "no"
resource-labels:
restart: "no"
kalliope-api:
restart: "no"
deltanotifier:
restart: "no"

31
docker-compose.prod.yml Normal file
View File

@@ -0,0 +1,31 @@
version: '3.4'
x-logging:
&default-logging
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
services:
web:
image: nginx
volumes:
- ./config/proxy:/etc/nginx/conf.d
- ./config/proxy/web.conf:/etc/nginx/nginx.conf:ro
links:
- identifier:identifier
labels:
- "logging=true"
restart: always
logging: *default-logging
ports:
- "80:80"
frontend:
image: lblod/frontend-contact-hub
labels:
- "logging=true"
environment:
EMBER_METIS_BASE_URL: "http://data.lblod.info/id/"
restart: always
logging: *default-logging

View File

@@ -17,17 +17,6 @@ services:
- "logging=true"
restart: always
logging: *default-logging
web:
image: nginx
volumes:
- ./config/proxy:/etc/nginx/conf.d
- ./config/proxy/web.conf:/etc/nginx/nginx.conf:ro
links:
- identifier:identifier
labels:
- "logging=true"
restart: always
logging: *default-logging
dispatcher:
image: semtech/mu-dispatcher:latest
volumes:
@@ -124,12 +113,4 @@ services:
deltanotifier:
image: semtech/mu-delta-notifier:0.1.0
volumes:
- ./config/delta:/config
frontend:
image: lblod/frontend-contact-hub
labels:
- "logging=true"
environment:
EMBER_METIS_BASE_URL: "http://data.lblod.info/id/"
restart: always
logging: *default-logging
- ./config/delta:/config