Skip to content

Commit

Permalink
Improved docker-compose.yml to make volumes read only and part of ext…
Browse files Browse the repository at this point in the history
…ension field; added note to say where documentation/examples could be found
  • Loading branch information
comrumino committed Jul 7, 2021
1 parent b145181 commit 4376350
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#
# Documentation and examples can be found @ ../docs/docs/advanced-debugging.rst
#
version: "3.9"
networks:
rpyc-test-net:
Expand All @@ -10,7 +13,11 @@ x-rpyc: &rpyc
tty: true
networks:
- rpyc-test-net
- default
volumes:
- type: bind
source: ./
target: /opt/rpyc
read_only: true
command: >
/bin/sh -c "python -m pip install git+https://github.com/tomerfiliba/plumbum.git;
python"
Expand All @@ -20,29 +27,19 @@ services:
container_name: rpyc-3.10
image: python:3.10-rc-buster
<< : *rpyc
volumes:
- ../:/opt/rpyc
rpyc-python-3.9:
container_name: rpyc-3.9
image: python:3.9-buster
<< : *rpyc
volumes:
- ../:/opt/rpyc
rpyc-python-3.8:
container_name: rpyc-3.8
image: python:3.8-buster
<< : *rpyc
volumes:
- ../:/opt/rpyc
rpyc-python-3.7:
container_name: rpyc-3.7
image: python:3.7-buster
<< : *rpyc
volumes:
- ../:/opt/rpyc
rpyc-python-3.6:
container_name: rpyc-3.6
image: python:3.6-buster
<< : *rpyc
volumes:
- ../:/opt/rpyc

0 comments on commit 4376350

Please sign in to comment.