Get the network and database shared across our containers correctly.

This commit is contained in:
Ralph Bean
2016-10-27 15:40:43 -04:00
committed by Matt Prahl
parent f9bc94cc92
commit fffb7d341f
2 changed files with 12 additions and 9 deletions

View File

@@ -13,7 +13,7 @@ RUN dnf install -y \
fedmsg-relay \
python-mock \
git \
# Troubleshooting tools
# Troubleshooting tools
telnet \
nc \
&& dnf autoremove -y \

View File

@@ -4,10 +4,13 @@ services:
build:
context: .
command: fedmsg-relay
ports:
- "2003:2003"
- "4001:4001"
module_build_service_daemon:
expose:
- 2001
- 2003
volumes:
# module_build_service sources are bind-mounted, so you don't have to rebuild
- ./:/opt/module_build_service/:z
scheduler:
build:
context: .
command: python2 /opt/module_build_service/module_build_service_daemon.py
@@ -15,19 +18,19 @@ services:
- fedmsg-relay
volumes:
# module_build_service sources are bind-mounted, so you don't have to rebuild
- ./module_build_service/:/opt/module_build_service/module_build_service/:z
- ./:/opt/module_build_service/:z
- ~/.fedora.cert:/root/.fedora.cert:z # koji credentials are mounted inside
- ~/.fedora-server-ca.cert:/root/.fedora-server-ca.cert:z
- ~/.fedora-upload-ca.cert:/root/.fedora-upload-ca.cert:z
module_build_service:
frontend:
build:
context: .
ports:
- "5000:5000"
links:
- module_build_service_daemon
- scheduler
- fedmsg-relay
volumes:
# module_build_service sources are bind-mounted, so you don't have to rebuild
- ./module_build_service/:/opt/module_build_service/module_build_service/:z
- ./:/opt/module_build_service/:z
command: python2 manage.py runssl