github.com/Benchkram/bob@v0.0.0-20220321080157-7c8f3876e225/bob/playground_compose.go (about) 1 package bob 2 3 // TODO: make this a valid compose file without port clashes. 4 // If you want to simulate port clashes add a test which assures 5 // that some ports are blocked. 6 var dockercompose = []byte(`version: '3' 7 services: 8 adminer: 9 image: adminer 10 restart: always 11 ports: 12 - "8080:8080" 13 #- 50001:50001 14 #- 5555:5555/udp 15 #- 9090-9091:8080-8081 16 depends_on: 17 - mysql 18 mysql: 19 image: mysql 20 restart: always 21 environment: 22 MYSQL_ROOT_PASSWORD: pass 23 ports: 24 - "3306:3306" 25 #- 9090-9091:8080-8081 # weird case 26 #- 6379:6379 # conflict with local env and mongo 27 mongo: 28 image: mongo 29 restart: always 30 environment: 31 MONGO_INITDB_ROOT_USERNAME: user 32 MONGO_INITDB_ROOT_PASSWORD: pass 33 ports: 34 - "27017:27017" 35 #- 9090-9091:8080-8081 # weird case 36 #- 6379:6379 # conflict with local env and mysql 37 #- 5555:5558/udp # different container port, but host collides 38 `) 39 40 var dockercomposewhoami = []byte(`version: '3' 41 services: 42 whoami: 43 image: containous/whoami 44 `)