mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
docker-compose propagate build arg for branding folder
This commit is contained in:
parent
de87d9347a
commit
f9fd5bfcaf
1
deployment/.env.dist
Normal file
1
deployment/.env.dist
Normal file
@ -0,0 +1 @@
|
|||||||
|
CONFIGURATION_FOLDER=configurations/example
|
||||||
@ -11,15 +11,19 @@ services:
|
|||||||
# 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-branded:local-production
|
image: ocelotsocialnetwork/webapp-branded:local-production
|
||||||
build:
|
build:
|
||||||
dockerfile: docker/webapp.Dockerfile
|
dockerfile: src/docker/webapp.Dockerfile
|
||||||
target: branded
|
target: branded
|
||||||
context: .
|
context: .
|
||||||
|
args:
|
||||||
|
- CONFIGURATION_FOLDER=$CONFIGURATION_FOLDER
|
||||||
ports:
|
ports:
|
||||||
- 3000:3000
|
- 3000:3000
|
||||||
networks:
|
networks:
|
||||||
- test-network
|
- test-network
|
||||||
depends_on:
|
depends_on:
|
||||||
- backend
|
- backend
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
environment:
|
environment:
|
||||||
- HOST=0.0.0.0
|
- HOST=0.0.0.0
|
||||||
- GRAPHQL_URI=http://backend:4000
|
- GRAPHQL_URI=http://backend:4000
|
||||||
@ -36,9 +40,11 @@ services:
|
|||||||
# 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-branded:local-production
|
image: ocelotsocialnetwork/backend-branded:local-production
|
||||||
build:
|
build:
|
||||||
dockerfile: docker/backend.Dockerfile
|
dockerfile: src/docker/backend.Dockerfile
|
||||||
target: branded
|
target: branded
|
||||||
context: .
|
context: .
|
||||||
|
args:
|
||||||
|
- CONFIGURATION_FOLDER=$CONFIGURATION_FOLDER
|
||||||
networks:
|
networks:
|
||||||
- test-network
|
- test-network
|
||||||
depends_on:
|
depends_on:
|
||||||
@ -65,6 +71,8 @@ services:
|
|||||||
- SMTP_HOST=mailserver
|
- SMTP_HOST=mailserver
|
||||||
- SMTP_PORT=25
|
- SMTP_PORT=25
|
||||||
- SMTP_IGNORE_TLS=true
|
- SMTP_IGNORE_TLS=true
|
||||||
|
# env_file:
|
||||||
|
# - .env
|
||||||
|
|
||||||
########################################################
|
########################################################
|
||||||
# MAINTENANCE ##########################################
|
# MAINTENANCE ##########################################
|
||||||
@ -74,9 +82,11 @@ services:
|
|||||||
image: ocelotsocialnetwork/maintenance-branded:local-production
|
image: ocelotsocialnetwork/maintenance-branded:local-production
|
||||||
build:
|
build:
|
||||||
# TODO: Separate from webapp, this must be independent
|
# TODO: Separate from webapp, this must be independent
|
||||||
dockerfile: docker/maintenance.Dockerfile
|
dockerfile: src/docker/maintenance.Dockerfile
|
||||||
target: branded
|
target: branded
|
||||||
context: .
|
context: .
|
||||||
|
args:
|
||||||
|
- CONFIGURATION_FOLDER=$CONFIGURATION_FOLDER
|
||||||
networks:
|
networks:
|
||||||
- test-network
|
- test-network
|
||||||
ports:
|
ports:
|
||||||
@ -88,6 +98,10 @@ 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-branded:local-production
|
image: ocelotsocialnetwork/neo4j-community-branded:local-production
|
||||||
|
build:
|
||||||
|
dockerfile: src/docker/neo4j.Dockerfile
|
||||||
|
target: community-branded
|
||||||
|
context: .
|
||||||
networks:
|
networks:
|
||||||
- test-network
|
- test-network
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user