define container names explicitly

This commit is contained in:
Ulf Gebhardt 2023-02-23 17:25:03 +01:00
parent d292952768
commit 8ca2ee65df
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9
3 changed files with 12 additions and 1 deletions

View File

@ -17,6 +17,7 @@ services:
webapp: webapp:
image: ocelotsocialnetwork/webapp-branded:local-${CONFIGURATION} image: ocelotsocialnetwork/webapp-branded:local-${CONFIGURATION}
container_name: webapp
build: build:
dockerfile: src/docker/webapp.Dockerfile dockerfile: src/docker/webapp.Dockerfile
target: branded target: branded
@ -60,6 +61,7 @@ services:
backend: backend:
image: ocelotsocialnetwork/backend-branded:local-${CONFIGURATION} image: ocelotsocialnetwork/backend-branded:local-${CONFIGURATION}
container_name: backend
build: build:
dockerfile: src/docker/backend.Dockerfile dockerfile: src/docker/backend.Dockerfile
target: branded target: branded
@ -87,7 +89,6 @@ services:
- PRIVATE_KEY_PASSPHRASE=a7dsf78sadg87ad87sfagsadg78 - PRIVATE_KEY_PASSPHRASE=a7dsf78sadg87ad87sfagsadg78
- EMAIL_SUPPORT=support@wir.social - EMAIL_SUPPORT=support@wir.social
- EMAIL_DEFAULT_SENDER=info@wir.social - EMAIL_DEFAULT_SENDER=info@wir.social
# - PRODUCTION_DB_CLEAN_ALLOW=false # only true for production environments on staging servers
- PUBLIC_REGISTRATION=true - PUBLIC_REGISTRATION=true
- INVITE_REGISTRATION=true - INVITE_REGISTRATION=true
- CATEGORIES_ACTIVE=true - CATEGORIES_ACTIVE=true
@ -96,6 +97,8 @@ services:
- SMTP_HOST=mailserver - SMTP_HOST=mailserver
- SMTP_PORT=25 - SMTP_PORT=25
- SMTP_IGNORE_TLS=true - SMTP_IGNORE_TLS=true
#- PRODUCTION_DB_CLEAN_ALLOW=true
- NODE_ENV=development
maintenance-base: maintenance-base:
image: ocelotsocialnetwork/maintenance:local-base image: ocelotsocialnetwork/maintenance:local-base
@ -114,6 +117,7 @@ services:
maintenance: maintenance:
# name the image so that it cannot be found in a DockerHub repository, otherwise it will not be built locally from the 'dockerfile' but pulled from there # name the image so that it cannot be found in a DockerHub repository, otherwise it will not be built locally from the 'dockerfile' but pulled from there
image: ocelotsocialnetwork/maintenance-branded:local-${CONFIGURATION} image: ocelotsocialnetwork/maintenance-branded:local-${CONFIGURATION}
container_name: maintenance
build: build:
# TODO: Separate from webapp, this must be independent # TODO: Separate from webapp, this must be independent
dockerfile: src/docker/maintenance.Dockerfile dockerfile: src/docker/maintenance.Dockerfile
@ -133,6 +137,7 @@ services:
neo4j: neo4j:
image: ocelotsocialnetwork/neo4j-community:latest image: ocelotsocialnetwork/neo4j-community:latest
container_name: neo4j
networks: networks:
- test-network - test-network
volumes: volumes:
@ -146,6 +151,7 @@ services:
mailserver: mailserver:
image: djfarrelly/maildev image: djfarrelly/maildev
container_name: mailserver
ports: ports:
- 1080:80 - 1080:80
networks: networks:

View File

@ -64,6 +64,7 @@ services:
######################################################## ########################################################
mailserver: mailserver:
image: djfarrelly/maildev image: djfarrelly/maildev
container_name: mailserver
ports: ports:
- 1080:80 - 1080:80
networks: networks:

View File

@ -13,6 +13,7 @@ services:
webapp: webapp:
# name the image so that it cannot be found in a DockerHub repository, otherwise it will not be built locally from the 'dockerfile' but pulled from there # name the image so that it cannot be found in a DockerHub repository, otherwise it will not be built locally from the 'dockerfile' but pulled from there
image: ocelotsocialnetwork/webapp:local-production image: ocelotsocialnetwork/webapp:local-production
container_name: webapp
build: build:
context: ./webapp context: ./webapp
target: production target: production
@ -44,6 +45,7 @@ services:
backend: backend:
# name the image so that it cannot be found in a DockerHub repository, otherwise it will not be built locally from the 'dockerfile' but pulled from there # name the image so that it cannot be found in a DockerHub repository, otherwise it will not be built locally from the 'dockerfile' but pulled from there
image: ocelotsocialnetwork/backend:local-production image: ocelotsocialnetwork/backend:local-production
container_name: backend
build: build:
context: ./backend context: ./backend
target: production target: production
@ -78,6 +80,7 @@ services:
maintenance: maintenance:
# name the image so that it cannot be found in a DockerHub repository, otherwise it will not be built locally from the 'dockerfile' but pulled from there # name the image so that it cannot be found in a DockerHub repository, otherwise it will not be built locally from the 'dockerfile' but pulled from there
image: ocelotsocialnetwork/maintenance:local-production image: ocelotsocialnetwork/maintenance:local-production
container_name: maintenance
build: build:
# TODO: Separate from webapp, this must be independent # TODO: Separate from webapp, this must be independent
context: ./webapp context: ./webapp
@ -93,6 +96,7 @@ services:
neo4j: neo4j:
# name the image so that it cannot be found in a DockerHub repository, otherwise it will not be built locally from the 'dockerfile' but pulled from there # name the image so that it cannot be found in a DockerHub repository, otherwise it will not be built locally from the 'dockerfile' but pulled from there
image: ocelotsocialnetwork/neo4j-community:local-production image: ocelotsocialnetwork/neo4j-community:local-production
container_name: neo4j
build: build:
context: ./neo4j context: ./neo4j
# community edition 👆🏼, because we have no enterprise licence 👇🏼 at the moment # community edition 👆🏼, because we have no enterprise licence 👇🏼 at the moment