This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #echo-server.py | |
| import trio | |
| from itertools import count | |
| # Port is arbitrary, but: | |
| # - must be in between 1024 and 65535 | |
| # - can't be in use by some other program on your computer | |
| # - must match what we set in our echo client | |
| PORT = 12345 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - name: Create db container and connect to network | |
| docker_container: | |
| name: "{{ app_name }}" | |
| image: "{{ app_image}}" | |
| networks: | |
| - name: "{{ docker_network_name }}" | |
| when: app_name == "certain_app" or app_name == "certain_other_app" | |
NewerOlder