docker-compose.test.yml (837B)
1 services: 2 vol1: 3 image: nginx:alpine 4 volumes: 5 - ./tests/nginx.conf:/etc/nginx/conf.d/default.conf 6 - vol1_data:/data 7 ports: 8 - "3101:80" 9 entrypoint: ["/bin/sh", "-c", "chown nginx:nginx /data && exec nginx -g 'daemon off;'"] 10 11 vol2: 12 image: nginx:alpine 13 volumes: 14 - ./tests/nginx.conf:/etc/nginx/conf.d/default.conf 15 - vol2_data:/data 16 ports: 17 - "3102:80" 18 entrypoint: ["/bin/sh", "-c", "chown nginx:nginx /data && exec nginx -g 'daemon off;'"] 19 20 vol3: 21 image: nginx:alpine 22 volumes: 23 - ./tests/nginx.conf:/etc/nginx/conf.d/default.conf 24 - vol3_data:/data 25 ports: 26 - "3103:80" 27 entrypoint: ["/bin/sh", "-c", "chown nginx:nginx /data && exec nginx -g 'daemon off;'"] 28 29 volumes: 30 vol1_data: 31 vol2_data: 32 vol3_data: