Skip to content

Commit

Permalink
Setting Superdesk to local hostname and Publisher Docker network
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanJelicSF committed May 20, 2024
1 parent 0b69c19 commit e369dac
Showing 1 changed file with 13 additions and 17 deletions.
30 changes: 13 additions & 17 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,13 @@ services:

mongodb:
image: mongo:4
networks:
- superdesk
expose:
- "27017"
ports:
- "27017:27017"

redis:
image: redis:3
networks:
- superdesk
expose:
- "6379"
ports:
Expand All @@ -22,8 +18,6 @@ services:
image: docker.elastic.co/elasticsearch/elasticsearch:7.10.1
environment:
- discovery.type=single-node
networks:
- superdesk
expose:
- "9200"
- "9300"
Expand All @@ -37,11 +31,11 @@ services:
- mongodb
- elastic
environment:
- SUPERDESK_URL=http://localhost:8080/api
- SUPERDESK_URL=http://superdesk.local:8080/api
- DEMO_DATA=1 # install demo data, set to 0 if you want clean install
- WEB_CONCURRENCY=2
- SUPERDESK_CLIENT_URL=http://localhost:8080
- CONTENTAPI_URL=http://localhost:8080/capi
- SUPERDESK_CLIENT_URL=http://superdesk.local:8080
- CONTENTAPI_URL=http://superdesk.local:8080/capi
- MONGO_URI=mongodb://mongodb/superdesk
- CONTENTAPI_MONGO_URI=mongodb://mongodb/superdesk_capi
- PUBLICAPI_MONGO_URI=mongodb://mongodb/superdesk_papi
Expand All @@ -52,25 +46,27 @@ services:
- CELERY_BROKER_URL=redis://redis:6379/1
- REDIS_URL=redis://redis:6379/1
- DEFAULT_TIMEZONE=Europe/Prague
- SECRET_KEY=*k^&9)byk=8en9n1sg7-xj4f8wr2mh^x#t%_2=1=z@69oxt50!
- SECRET_KEY=secretkey
# More configuration options can be found at https://superdesk.readthedocs.io/en/latest/settings.html
networks:
- superdesk

superdesk-client:
build: ./client
environment:
# If not hosting on localhost, change these lines
- SUPERDESK_URL=http://localhost:8080/api
- SUPERDESK_WS_URL=ws://localhost:8080/ws
- SUPERDESK_URL=http://superdesk.local:8080/api
- SUPERDESK_WS_URL=ws://superdesk.local:8080/ws
- IFRAMELY_KEY
depends_on:
- superdesk-server
ports:
- "8080:80"
networks:
- superdesk
default:
aliases:
- superdesk.local


networks:
superdesk:
driver: bridge
default:
external:
name: sp-publisher-network

0 comments on commit e369dac

Please sign in to comment.